功能变化: websocket nginx 配置

pull/79/head
李强 2022-11-25 16:05:34 +08:00
parent 7ecc156c07
commit 91146e80da
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ server {
rewrite ^/api/(.*)$ /$1 break; #重写 rewrite ^/api/(.*)$ /$1 break; #重写
proxy_pass http://177.8.0.12:8000/; # 设置代理服务器的协议和地址 proxy_pass http://177.8.0.12:8000/; # 设置代理服务器的协议和地址
} }
location /ws { location /api/ws {
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-Ip $remote_addr; proxy_set_header X-Real-Ip $remote_addr;