Skip to content

Instantly share code, notes, and snippets.

@yaoxinghuo
Last active July 14, 2020 13:16
Show Gist options
  • Save yaoxinghuo/d4b539484d117a29ad7e7e8ba064e4c6 to your computer and use it in GitHub Desktop.
Save yaoxinghuo/d4b539484d117a29ad7e7e8ba064e4c6 to your computer and use it in GitHub Desktop.
{
"log": {
"access": "/home/vcap/logs/access.log",
"error": "/home/vcap/logs/error.log",
"loglevel": "warning"
},
"inbounds": [{
"port": 8080,
"protocol": "vmess",
"settings": {
"clients": [{
"id": "8c35bef3-d51f-41ab-ac87-7b053410495b",
"level": 1,
"alterId": 2,
"email": "orz@gmail.com"
}]
},
"streamSettings": {
"network": "ws"
}
}],
"outbounds": [{
"protocol": "freedom",
"settings": {},
"tag": "direct"
}, {
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
}],
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"domain": [
"domain:example-ad.com",
"domain:hostloc.net",
"geosite:category-ads-all"
],
"outboundTag": "blocked"
},
{
"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