-
Notifications
You must be signed in to change notification settings - Fork 922
VLESS-XHTTP3-Nginx的配置似乎不成功 #208
Description
Xray 24.12.18
VLESS-XHTTP3-Nginx的配置会在xray server端报错
proxy/vless/inbound: connection ends > context canceled
xray server端报错如下:
2024/12/31 13:16:34 from XXXX请求IP:0 accepted tcp:developers.google.com:443
2024/12/31 13:16:34 [Info] [2621369704] proxy/freedom: connection opened to tcp:developers.google.com:443, local endpoint 10.0.0.82:40978, remote endpoint 172.217.25.174:443
2024/12/31 13:16:34 [Info] [2621369704] proxy: CopyRawConn readv
2024/12/31 13:16:35 [Info] [2621369704] app/proxyman/inbound: connection ends > proxy/vless/inbound: connection ends > context canceled
server端相关配置如下:
"inbounds": [
{
"listen": "/dev/shm/xrxh.socket,0666",
"protocol": "vless",
"settings": {
"clients": [
{
"id": "XXX"
}
],
"decryption": "none"
},
"streamSettings": {
"network": "xhttp",
"xhttpSettings": {
"mode": "stream-one",
"path": "/split"
}
}
},
client端配置如下:
"outbounds": [
{
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "XXX",
"port": 443,
"users": [
{
"id": "XXX" //填写你的 UUID
}
]
}
]
},
"streamSettings": {
"network": "xhttp",
"xhttpSettings": {
"path": "/split", //填写你的 path
"mode": "stream-one",
"xmux": {
"maxConcurrency": 128,
"cMaxReuseTimes": 1000,
"cMaxLifetimeMs": 3600000
}
}
"security": "tls",
"tlsSettings": {
"alpn": [
"h3"
]
}
}
}
nginx相关配置如下:
location /split/ {
client_max_body_size 0;
grpc_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_body_timeout 5m;
grpc_read_timeout 315;
grpc_send_timeout 5m;
grpc_pass unix:/dev/shm/xrxh.socket;
}