fix nginx

This commit is contained in:
jxxghp 2023-07-09 12:46:33 +08:00
parent 7f029d7389
commit 3d5fea971a

View File

@ -52,11 +52,16 @@ http {
# 后端API
proxy_pass http://backend_api;
rewrite ^.+mock-server/?(.*)$ /$1 break;
proxy_http_version 1.1;
proxy_buffering off;
proxy_cache off;
proxy_redirect off;
proxy_set_header Connection "";
proxy_set_header Upgrade $http_upgrade;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Nginx-Proxy true;
proxy_redirect off;
}
error_page 500 502 503 504 /50x.html;