Created
February 21, 2020 09:23
-
-
Save HaoweiCh/a20e35a480a9692f53118f98933893e6 to your computer and use it in GitHub Desktop.
v2ray config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"log": { | |
"access": "/var/log/v2ray/access.log", | |
"error": "/var/log/v2ray/error.log", | |
"loglevel": "warning" | |
}, | |
"dns": { | |
"servers": [ | |
"8.8.8.8" | |
] | |
}, | |
"inbounds": [ | |
{ | |
"protocol": "shadowsocks", | |
"port": 3080, | |
"listen": "0.0.0.0", | |
"settings": { | |
"method": "chacha20-ietf", | |
"password": "CHANGME", | |
"udp": true | |
} | |
}, | |
{ | |
"port": 1080, | |
"listen": "0.0.0.0", | |
"protocol": "http", | |
"settings": {}, | |
"streamSettings": {} | |
} | |
], | |
"outbounds": [ | |
{ | |
"protocol": "vmess", | |
"settings": { | |
"vnext": [ | |
{ | |
"address": "your.site", | |
"port": 443, | |
"users": [ | |
{ | |
"id": "1-2-3-4-123456789", | |
"alterId": 11, | |
"security": "chacha20" | |
} | |
] | |
} | |
] | |
}, | |
"streamSettings": { | |
"network": "ws", | |
"security": "tls", | |
"wsSettings": { | |
"path": "/abc" | |
} | |
} | |
} | |
], | |
"routing": { | |
"rules": [ | |
{ | |
"type": "field", | |
"ip": [ | |
"geoip:private" | |
], | |
"outboundTag": "blocked" | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment