附上我的反代的设置。(其实里面很多都是没用的,按照需要自行更改即可)location /peng/ {
proxy_http_version 1.1;
proxy_set_header X-Forwarded-Host $http_host;
proxy_pass http://127.0.0.1:port/;
proxy_set_header Connection "";
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_buffering off;
proxy_cache off;
send_timeout 600;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
}