Create config_server.json

This commit is contained in:
chika0801 2022-11-02 22:55:31 +08:00 committed by GitHub
parent 35bc52e110
commit d073dbc7bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

64
config_server.json Normal file
View File

@ -0,0 +1,64 @@
{
"log": {
"loglevel": "warning"
},
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"type": "field",
"ip": [
"geoip:cn",
"geoip:private"
],
"outboundTag": "block"
}
]
},
"inbounds": [
{
"listen": "0.0.0.0",
"port": 16387, //
"protocol": "vless",
"settings": {
"clients": [
{
"id": "", // ID
"flow": "xtls-rprx-vision"
}
],
"decryption": "none"
},
"streamSettings": {
"network": "tcp",
"security": "tls",
"tlsSettings": {
"rejectUnknownSni": true,
"certificates": [
{
"certificateFile": "/etc/ssl/private/fullchain.cer", //
"keyFile": "/etc/ssl/private/private.key" //
}
]
}
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
}
}
],
"outbounds": [
{
"protocol": "freedom",
"tag": "direct"
},
{
"protocol": "blackhole",
"tag": "block"
}
]
}