v2ray-examples/VMess-HTTP/config_server.json

72 lines
2.0 KiB
JSON
Raw Permalink Normal View History

2017-11-25 19:43:00 +08:00
{
2020-08-01 21:42:24 +08:00
"log": {
"loglevel": "warning"
},
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"ip": [
"geoip:private"
],
"outboundTag": "block"
2017-11-28 23:11:54 +08:00
}
2020-08-01 21:42:24 +08:00
]
2017-11-28 23:11:54 +08:00
},
2020-08-01 21:42:24 +08:00
"inbounds": [
2018-04-16 17:07:21 +08:00
{
2020-08-01 21:42:24 +08:00
"listen": "0.0.0.0",
"port": 1234,
"protocol": "vmess",
"settings": {
"clients": [
{
2020-11-22 01:21:44 +08:00
"id": ""
2020-08-01 21:42:24 +08:00
}
2020-11-22 01:21:44 +08:00
]
2020-08-01 21:42:24 +08:00
},
"streamSettings": {
"network": "tcp",
"tcpSettings": {
"header": {
"type": "http",
"response": {
"version": "1.1",
"status": "200",
"reason": "OK",
"headers": {
"Content-Type": [
"application/octet-stream",
"video/mpeg",
"application/x-msdownload",
"text/html",
"application/x-shockwave-flash"
],
"Transfer-Encoding": [
"chunked"
],
"Connection": [
"keep-alive"
],
"Pragma": "no-cache"
}
}
}
},
"security": "none"
}
2018-04-16 17:07:21 +08:00
}
2020-08-01 21:42:24 +08:00
],
"outbounds": [
2018-04-16 17:07:21 +08:00
{
2020-08-01 21:42:24 +08:00
"protocol": "freedom",
"tag": "direct"
},
{
"protocol": "blackhole",
"tag": "block"
2018-04-16 17:07:21 +08:00
}
2020-08-01 21:42:24 +08:00
]
}