diff --git a/conf/nginx.conf b/conf/nginx.conf index 2852568..1bace38 100755 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -7,7 +7,7 @@ location / { client_max_body_size 50M; - proxy_pass http://127.0.0.1:__PORT__/; + proxy_pass http://127.0.0.1:__PORT__; proxy_set_header Connection "upgrade"; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; @@ -28,8 +28,8 @@ location / { more_clear_input_headers 'Accept-Encoding'; } -location /ws/ { - proxy_pass http://127.0.0.1:__PORT__/; +location ~ /ws/ { + proxy_pass http://127.0.0.1:__PORT__; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; client_max_body_size 50M;