Created
December 24, 2023 16:04
-
-
Save greatbody/460632fe41afbe77fb41270402a05775 to your computer and use it in GitHub Desktop.
json for v2ray
This file contains hidden or 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": null, | |
"routing": { | |
"rules": [ | |
{ | |
"inboundTag": [ | |
"api" | |
], | |
"outboundTag": "api", | |
"type": "field" | |
}, | |
{ | |
"ip": [ | |
"geoip:private" | |
], | |
"outboundTag": "blocked", | |
"type": "field" | |
}, | |
{ | |
"outboundTag": "blocked", | |
"protocol": [ | |
"bittorrent" | |
], | |
"type": "field" | |
} | |
] | |
}, | |
"dns": null, | |
"inbounds": [ | |
{ | |
"listen": "127.0.0.1", | |
"port": 62789, | |
"protocol": "dokodemo-door", | |
"settings": { | |
"address": "127.0.0.1" | |
}, | |
"streamSettings": null, | |
"tag": "api", | |
"sniffing": null | |
}, | |
{ | |
"listen": null, | |
"port": GCP_PORT, | |
"protocol": "vmess", | |
"settings": { | |
"clients": [ | |
{ | |
"id": "GCP_ID", | |
"alterId": 0 | |
} | |
], | |
"disableInsecureEncryption": false | |
}, | |
"streamSettings": { | |
"network": "ws", | |
"security": "none", | |
"wsSettings": { | |
"path": "/", | |
"headers": { | |
"Host": "GCP_HOST" | |
} | |
} | |
}, | |
"tag": "inbound-GCP_PORT", | |
"sniffing": { | |
"enabled": true, | |
"destOverride": [ | |
"http", | |
"tls" | |
] | |
} | |
} | |
], | |
"outbounds": [ | |
{ | |
"protocol": "freedom", | |
"settings": {} | |
}, | |
{ | |
"protocol": "blackhole", | |
"settings": {}, | |
"tag": "blocked" | |
} | |
], | |
"transport": null, | |
"policy": { | |
"system": { | |
"statsInboundDownlink": true, | |
"statsInboundUplink": true | |
} | |
}, | |
"api": { | |
"services": [ | |
"HandlerService", | |
"LoggerService", | |
"StatsService" | |
], | |
"tag": "api" | |
}, | |
"stats": {}, | |
"reverse": null, | |
"fakeDns": null | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment