From ef8962658d3688c989348ebe79b07d40de848406 Mon Sep 17 00:00:00 2001 From: xqzr <34030394+xqzr@users.noreply.github.com> Date: Sat, 26 Oct 2024 02:55:19 +0800 Subject: [PATCH] Update nginx.conf --- VLESS-WSS-Nginx/nginx.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/VLESS-WSS-Nginx/nginx.conf b/VLESS-WSS-Nginx/nginx.conf index 97f4435..150c381 100644 --- a/VLESS-WSS-Nginx/nginx.conf +++ b/VLESS-WSS-Nginx/nginx.conf @@ -11,12 +11,12 @@ server { ssl_protocols TLSv1.2 TLSv1.3; ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384; - # 在 location 后填写 /你的 path - location /你的 path { + # 在 location 后填写 /你的 path/ + location /你的 path/ { if ($http_upgrade != "websocket") { return 404; } - proxy_pass http://127.0.0.1:1234; + proxy_pass http://127.0.0.1:1234/; proxy_redirect off; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade;