This commit is contained in:
parent
68c0492e4f
commit
a4773bfcac
|
|
@ -1,14 +1,8 @@
|
|||
upstream api {
|
||||
server 127.0.0.1:8084;
|
||||
keepalive 64;
|
||||
}
|
||||
|
||||
upstream apiv1 {
|
||||
server 127.0.0.1:8084;
|
||||
keepalive 64;
|
||||
}
|
||||
|
||||
|
||||
upstream chatws {
|
||||
server 127.0.0.1:8084;
|
||||
keepalive 64;
|
||||
|
|
@ -17,23 +11,10 @@ upstream chatws {
|
|||
server {
|
||||
server_name updsrv.szaiai.com;
|
||||
|
||||
#access_log /var/log/nginx/host.access.log main;
|
||||
|
||||
client_max_body_size 100M; # 这里设置确保适用于所有 HTTPS 请求
|
||||
|
||||
location / {
|
||||
proxy_redirect off;
|
||||
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;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-NginX-Proxy true;
|
||||
proxy_set_header Connection "";
|
||||
proxy_http_version 1.1;
|
||||
proxy_pass http://api;
|
||||
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
return 404;
|
||||
}
|
||||
|
||||
location /pics/ {
|
||||
|
|
|
|||
Loading…
Reference in New Issue