mirror of
https://github.com/XTLS/Xray-examples.git
synced 2025-09-21 22:54:28 +08:00
Compare commits
6 Commits
main
...
Del-`path`
Author | SHA1 | Date | |
---|---|---|---|
|
2a3aa86e4a | ||
|
ef8962658d | ||
|
f092fd7ae3 | ||
|
fb19ed3ed6 | ||
|
f7e1a4e5b4 | ||
|
100e729cc7 |
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
|
@@ -16,10 +16,7 @@
|
|||||||
"decryption": "none"
|
"decryption": "none"
|
||||||
},
|
},
|
||||||
"streamSettings": {
|
"streamSettings": {
|
||||||
"network": "splithttp",
|
"network": "splithttp"
|
||||||
"splithttpSettings": {
|
|
||||||
"path": "/split"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"sniffing": {
|
"sniffing": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
|
@@ -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;
|
||||||
|
@@ -16,10 +16,7 @@
|
|||||||
"decryption": "none"
|
"decryption": "none"
|
||||||
},
|
},
|
||||||
"streamSettings": {
|
"streamSettings": {
|
||||||
"network": "ws",
|
"network": "ws"
|
||||||
"wsSettings": {
|
|
||||||
"path": "/Path2WS" // 填写你的 path
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"sniffing": {
|
"sniffing": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
|
Reference in New Issue
Block a user