action.yohocn.conf
914 Bytes
server {
listen 80 ;
proxy_http_version 1.1;
proxy_set_header Connection "";
server_name action.yoho.cn ;
error_log /Data/logs/nginx/error_action.yoho.cn.log error;
access_log /Data/logs/nginx/access_action.yoho.cn.log fenxi;
# nginx status check
location = /status_check {
default_type text/html;
return 200 'action.yoho.cn server is ok!';
}
# for mini program
location ~* .(txt)$ {
root /Data/node/action-yoho-cn/current/action-yoho-cn/public/static;
}
location / {
limit_req zone=allips_per_ip_20 burst=5 nodelay;
limit_req zone=limit_per_url_100 burst=10 nodelay;
proxy_pass http://yoho-web-new-inner;
}
location /api/ {
limit_req zone=allips_per_ip_20 burst=5 nodelay;
limit_req zone=limit_per_url_50 burst=10 nodelay;
proxy_pass http://yoho-web-new-inner;
}
}