upstream nhpay_cookingeasy_cn {
server 39.105.134.128:8080;
keepalive 2000;
}
server {
listen 80;
server_name nhpay.cookingeasy.cn;
client_max_body_size 1024M;
location / {
proxy_pass http://nhpay_cookingeasy_cn;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
原文:https://www.cnblogs.com/qc001/p/9206752.html