86 lines
2.8 KiB
JSON
Raw Normal View History

2024-12-13 18:51:12 +08:00
{
"log": {},
"inbounds": [
{
"port": "1080",
"listen": "::1",
"protocol": "socks",
"settings": {
"udp": true
}
}
],
"outbounds": [
{
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "example.com",
"port": 443,
"users": [
{
"id": "" //填写你的 UUID
}
]
}
]
},
"streamSettings": {
"network": "xhttp",
"xhttpSettings": {
"path": "", //填写你的 path
2024-12-26 12:05:46 +08:00
"mode": "stream-one", //如使用 downloadSettings下行不可用 stream-one可用 stream-up。
"#xmux": { //使用默认值。如需自定义:移除前面的 #(井号)。注意:不可超过 Nginx 的最高(上限)值。
2024-12-13 18:51:12 +08:00
"maxConcurrency": 128, //Nginx 默认上限 128。https://nginx.org/en/docs/http/ngx_http_v3_module.html#http3_max_concurrent_streams
"hMaxRequestTimes": 1000, //Nginx 默认上限 1000。https://nginx.org/en/docs/http/ngx_http_core_module.html#keepalive_requests
"hMaxReusableSecs": 3600 //Nginx 默认上限 3600s(1h)。https://nginx.org/en/docs/http/ngx_http_core_module.html#keepalive_time
2024-12-26 12:05:46 +08:00
},
"#downloadSettings": { //如需 H2 下行:移除前面的 #(井号)以使用 downloadSettings上面和 server.json 的 mode 更改为 stream-up。
2024-12-26 12:05:46 +08:00
"address": "example.com",
"port": 443,
"network": "xhttp",
"xhttpSettings": {
"path": "", //填写你的 path同上
"#xmux": { //使用默认值。如需自定义:移除前面的 #(井号)。注意:不可超过 Nginx 的最高(上限)值。
2024-12-26 12:05:46 +08:00
"maxConcurrency": 128, //Nginx 默认上限 128。https://nginx.org/en/docs/http/ngx_http_v3_module.html#http3_max_concurrent_streams
"hMaxRequestTimes": 1000, //Nginx 默认上限 1000。https://nginx.org/en/docs/http/ngx_http_core_module.html#keepalive_requests
"hMaxReusableSecs": 3600 //Nginx 默认上限 3600s(1h)。https://nginx.org/en/docs/http/ngx_http_core_module.html#keepalive_time
2024-12-26 12:05:46 +08:00
}
},
"security": "tls"
2024-12-13 18:51:12 +08:00
}
2024-12-26 12:05:46 +08:00
},
2024-12-13 18:51:12 +08:00
"security": "tls",
"tlsSettings": {
"alpn": [
"h3"
]
}
}
},
{
"tag": "direct",
"protocol": "freedom",
"settings": {}
},
{
"tag": "blocked",
"protocol": "blackhole",
"settings": {}
}
],
"routing": {
"domainStrategy": "IPOnDemand",
"rules": [
{
"type": "field",
"ip": [
"geoip:private"
],
"outboundTag": "direct"
}
]
}
}