mirror of
https://github.com/XTLS/Xray-examples.git
synced 2025-06-28 21:26:06 +08:00
Update config_server.json
This commit is contained in:
parent
4fea34575f
commit
84be0f3809
@ -16,26 +16,40 @@
|
|||||||
},
|
},
|
||||||
"inbounds": [
|
"inbounds": [
|
||||||
{
|
{
|
||||||
"listen": "0.0.0.0",
|
"listen": "0.0.0.0", // "0.0.0.0" 表示同时监听IPv4和IPv6
|
||||||
"port": 16387, // 端口
|
"port": 443, // 服务端监听的端口
|
||||||
"protocol": "vless",
|
"protocol": "vless",
|
||||||
"settings": {
|
"settings": {
|
||||||
"clients": [
|
"clients": [
|
||||||
{
|
{
|
||||||
"id": "", // 用户ID
|
"id": "", // 用户ID,执行 xray uuid 生成,或 1-30 字节的字符串
|
||||||
"flow": "xtls-rprx-vision"
|
"flow": "xtls-rprx-vision"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"decryption": "none"
|
"decryption": "none",
|
||||||
|
"fallbacks": [
|
||||||
|
{
|
||||||
|
"dest": "8001",
|
||||||
|
"xver": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"alpn": "h2",
|
||||||
|
"dest": "8002",
|
||||||
|
"xver": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"streamSettings": {
|
"streamSettings": {
|
||||||
"network": "tcp",
|
"network": "tcp",
|
||||||
"security": "tls",
|
"security": "tls",
|
||||||
"tlsSettings": {
|
"tlsSettings": {
|
||||||
|
"rejectUnknownSni": true,
|
||||||
|
"minVersion": "1.2",
|
||||||
"certificates": [
|
"certificates": [
|
||||||
{
|
{
|
||||||
"certificateFile": "/etc/ssl/private/fullchain.cer", // 证书
|
"ocspStapling": 3600,
|
||||||
"keyFile": "/etc/ssl/private/private.key" //私钥
|
"certificateFile": "/etc/ssl/private/fullchain.cer", // 证书文件,建议用 fullchain,否则如在 v2rayNG 使用会报错,通常不区分扩展名
|
||||||
|
"keyFile": "/etc/ssl/private/private.key" // 私钥文件
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -58,5 +72,15 @@
|
|||||||
"protocol": "blackhole",
|
"protocol": "blackhole",
|
||||||
"tag": "block"
|
"tag": "block"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"policy": {
|
||||||
|
"levels": {
|
||||||
|
"0": {
|
||||||
|
"handshake": 2,
|
||||||
|
"connIdle": 120,
|
||||||
|
"uplinkOnly": 1,
|
||||||
|
"downlinkOnly": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user