v2ray-examples/VMess-HTTP2/config_server.json

54 lines
1.2 KiB
JSON
Raw Permalink Normal View History

2018-04-16 17:07:21 +08:00
{
"log": {
2020-08-01 21:40:36 +08:00
"loglevel": "warning"
2018-04-16 17:07:21 +08:00
},
2020-08-01 21:40:36 +08:00
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"ip": [
"geoip:private"
2018-04-16 17:07:21 +08:00
],
2020-08-01 21:40:36 +08:00
"outboundTag": "block"
}
]
},
"inbounds": [
{
"listen": "0.0.0.0",
"port": 1234,
"protocol": "vmess",
"settings": {
"clients": [
2018-04-16 17:07:21 +08:00
{
2020-11-22 01:21:44 +08:00
"id": ""
2018-04-16 17:07:21 +08:00
}
2020-11-22 01:21:44 +08:00
]
2018-04-16 17:07:21 +08:00
},
2020-08-01 21:40:36 +08:00
"streamSettings": {
"network": "http",
"security": "tls",
"tlsSettings": {
"certificates": [
{
"certificateFile": "/path/to/certificate.crt",
"keyFile": "/path/to/key.key"
}
]
2018-04-16 17:07:21 +08:00
}
2020-08-01 21:40:36 +08:00
}
2018-04-16 17:07:21 +08:00
}
2020-08-01 21:40:36 +08:00
],
"outbounds": [
{
"protocol": "freedom",
"tag": "direct"
},
2018-04-16 17:07:21 +08:00
{
"protocol": "blackhole",
2020-08-01 21:40:36 +08:00
"tag": "block"
2018-04-16 17:07:21 +08:00
}
2020-08-01 21:40:36 +08:00
]
}