Skip to content

Instantly share code, notes, and snippets.

@AdastraGenshin
Last active December 16, 2023 06:58
Show Gist options
  • Save AdastraGenshin/c166b60aa454058ff2220d47aabd7920 to your computer and use it in GitHub Desktop.
Save AdastraGenshin/c166b60aa454058ff2220d47aabd7920 to your computer and use it in GitHub Desktop.
{
"log": {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "warning"
},
"api": {
"tag": "api",
"services": ["HandlerService", "StatsService"]
},
"inbounds": [
{
"port": 441,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "e71570a2-9079-4525-af6b-33f2fdd82410",
"level": 1,
"alterId": 64,
"security": "auto"
}
],
"disableInsecureEncryption": true
},
"streamSettings": {
"network": "tcp",
"security": "tls",
"tlsSettings": {
"certificates": [
{
"certificateFile": "/etc/v2ray/certificate.crt",
"keyFile": "/etc/v2ray/private.key"
}
]
}
}
},
{
"listen": "127.0.0.1",
"port": 62789,
"protocol": "dokodemo-door",
"settings": {
"address": "127.0.0.1"
},
"tag": "api"
}
],
"outbounds": [
{
"protocol": "freedom",
"settings": {}
}
],
"routing": {
"rules": [
{
"type": "field",
"inboundTag": ["vmess-in"],
"outboundTag": "freedom"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment