Update nginx.conf

This commit is contained in:
xqzr 2022-08-30 00:23:48 +08:00 committed by GitHub
parent 377703e911
commit e01c18039c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,10 +12,11 @@ server {
# location 后填写 /你的 path
location /你的 path {
if ($http_upgrade != "websocket") {
return 404;
}
if ($http_upgrade != "websocket") {
return 404;
}
proxy_pass http://unix:/dev/shm/Xray-VLESS-WSS-Nginx.socket;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";