Compare commits

6 Commits

Author SHA1 Message Date
xqzr
2a3aa86e4a Update Caddyfile 2024-10-26 03:10:34 +08:00
xqzr
ef8962658d Update nginx.conf 2024-10-26 02:55:19 +08:00
xqzr
f092fd7ae3 Update server.jsonc 2024-10-26 02:54:54 +08:00
xqzr
fb19ed3ed6 Update Caddyfile 2024-10-26 02:48:55 +08:00
xqzr
f7e1a4e5b4 Update server.jsonc 2024-10-26 02:38:33 +08:00
xqzr
100e729cc7 Update nginx.conf 2024-10-26 02:37:34 +08:00
5 changed files with 8 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
localhost:443 { localhost:443 {
handle /split/* { handle_path /split/* {
reverse_proxy http://127.0.0.1:1234 reverse_proxy http://127.0.0.1:1234
} }
} }

View File

@@ -15,8 +15,8 @@ server {
# of information. # of information.
# access_log off; # access_log off;
location /split { location /split/ {
proxy_pass http://127.0.0.1:1234; proxy_pass http://127.0.0.1:1234/;
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_redirect off; proxy_redirect off;
} }

View File

@@ -16,10 +16,7 @@
"decryption": "none" "decryption": "none"
}, },
"streamSettings": { "streamSettings": {
"network": "splithttp", "network": "splithttp"
"splithttpSettings": {
"path": "/split"
}
}, },
"sniffing": { "sniffing": {
"enabled": true, "enabled": true,

View File

@@ -11,12 +11,12 @@ server {
ssl_protocols TLSv1.2 TLSv1.3; 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; 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") { if ($http_upgrade != "websocket") {
return 404; return 404;
} }
proxy_pass http://127.0.0.1:1234; proxy_pass http://127.0.0.1:1234/;
proxy_redirect off; proxy_redirect off;
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;

View File

@@ -16,10 +16,7 @@
"decryption": "none" "decryption": "none"
}, },
"streamSettings": { "streamSettings": {
"network": "ws", "network": "ws"
"wsSettings": {
"path": "/Path2WS" // 填写你的 path
}
}, },
"sniffing": { "sniffing": {
"enabled": true, "enabled": true,