beautified

This commit is contained in:
KiriKira 2018-02-01 22:15:53 +08:00
parent 12b2221be9
commit 42c954e6ef
2 changed files with 186 additions and 186 deletions

View File

@ -1,74 +1,83 @@
{ {
"outbound": { "dns": {
"streamSettings": { "servers": [
"network": "tcp", "8.8.8.8",
"kcpSettings": null, "8.8.4.4",
"wsSettings": null, "localhost"
"tcpSettings": null, ]
"tlsSettings": {},
"security": "tls"
}, },
"tag": "agentout", "inbound": {
"protocol": "vmess", "listen": "0.0.0.0",
"port": 1080,
"protocol": "socks",
"settings": {
"auth": "noauth",
"clients": null,
"ip": "127.0.0.1",
"udp": true
},
"streamSettings": null
},
"inboundDetour": null,
"log": {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "info"
},
"outbound": {
"mux": { "mux": {
"enabled": true "enabled": true
}, },
"protocol": "vmess",
"settings": { "settings": {
"vnext": [ "vnext": [
{ {
"address": "example.domain",
"port": 443,
"users": [ "users": [
{ {
"alterId": 64, "alterId": 64,
"security": "none", "id": "0cdf8a45-303d-4fed-9780-29aa7f54175e",
"id": "0cdf8a45-303d-4fed-9780-29aa7f54175e" "security": "none"
}
],
"port": 443,
"address": "example.domain"
} }
] ]
} }
]
}, },
"log": { "streamSettings": {
"access": "/var/log/v2ray/access.log", "kcpSettings": null,
"loglevel": "info", "network": "tcp",
"error": "/var/log/v2ray/error.log" "security": "tls",
"tcpSettings": null,
"tlsSettings": {},
"wsSettings": null
},
"tag": "agentout"
}, },
"outboundDetour": [ "outboundDetour": [
{ {
"tag": "direct",
"protocol": "freedom", "protocol": "freedom",
"settings": { "settings": {
"response": null "response": null
} },
"tag": "direct"
}, },
{ {
"tag": "blockout",
"protocol": "blackhole", "protocol": "blackhole",
"settings": { "settings": {
"response": { "response": {
"type": "http" "type": "http"
} }
} },
"tag": "blockout"
} }
], ],
"inbound": {
"streamSettings": null,
"settings": {
"ip": "127.0.0.1",
"udp": true,
"clients": null,
"auth": "noauth"
},
"protocol": "socks",
"port": 1080,
"listen": "0.0.0.0"
},
"inboundDetour": null,
"routing": { "routing": {
"settings": { "settings": {
"domainStrategy": "IPIfNonMatch",
"rules": [ "rules": [
{ {
"domain": null,
"ip": [ "ip": [
"0.0.0.0/8", "0.0.0.0/8",
"10.0.0.0/8", "10.0.0.0/8",
@ -86,21 +95,12 @@
"fc00::/7", "fc00::/7",
"fe80::/10" "fe80::/10"
], ],
"domain": null, "outboundTag": "direct",
"type": "field",
"port": null, "port": null,
"outboundTag": "direct" "type": "field"
} }
], ]
"domainStrategy": "IPIfNonMatch"
}, },
"strategy": "rules" "strategy": "rules"
},
"dns": {
"servers": [
"8.8.8.8",
"8.8.4.4",
"localhost"
]
} }
} }

View File

@ -1,61 +1,63 @@
{ {
"outbound": { "dns": null,
"streamSettings": null,
"tag": null,
"protocol": "freedom",
"mux": null,
"settings": null
},
"log": {
"access": "/var/log/v2ray/access.log",
"loglevel": "info",
"error": "/var/log/v2ray/error.log"
},
"inboundDetour": null,
"inbound": { "inbound": {
"listen": null,
"port": 443,
"protocol": "vmess",
"settings": {
"auth": null,
"clients": [
{
"alterId": 64,
"id": "e2b39869-7e9e-411b-a561-00904419bed9",
"security": "none"
}
],
"ip": null,
"udp": true
},
"streamSettings": { "streamSettings": {
"network": "tcp",
"kcpSettings": null, "kcpSettings": null,
"wsSettings": null, "network": "tcp",
"security": "tls",
"tcpSettings": null, "tcpSettings": null,
"tlsSettings": { "tlsSettings": {
"certificates": [ "certificates": [
{ {
"keyFile": "/path/to/example.domain.key", "certificateFile": "/path/to/example.domain/fullchain.cer",
"certificateFile": "/path/to/example.domain/fullchain.cer" "keyFile": "/path/to/example.domain.key"
} }
] ]
}, },
"security": "tls" "wsSettings": null
}
}, },
"listen": null, "inboundDetour": null,
"protocol": "vmess", "log": {
"port": 443, "access": "/var/log/v2ray/access.log",
"settings": { "error": "/var/log/v2ray/error.log",
"ip": null, "loglevel": "info"
"udp": true, },
"clients": [ "outbound": {
{ "mux": null,
"alterId": 64, "protocol": "freedom",
"security": "none", "settings": null,
"id": "e2b39869-7e9e-411b-a561-00904419bed9" "streamSettings": null,
} "tag": null
],
"auth": null
}
}, },
"outboundDetour": [ "outboundDetour": [
{ {
"tag": "blocked",
"protocol": "blackhole", "protocol": "blackhole",
"settings": null "settings": null,
"tag": "blocked"
} }
], ],
"routing": { "routing": {
"strategy": "rules",
"settings": { "settings": {
"domainStrategy": null,
"rules": [ "rules": [
{ {
"domain": null,
"ip": [ "ip": [
"0.0.0.0/8", "0.0.0.0/8",
"10.0.0.0/8", "10.0.0.0/8",
@ -73,14 +75,12 @@
"fc00::/7", "fc00::/7",
"fe80::/10" "fe80::/10"
], ],
"domain": null, "outboundTag": "blocked",
"type": "field",
"port": null, "port": null,
"outboundTag": "blocked" "type": "field"
}
],
"domainStrategy": null
} }
]
}, },
"dns": null "strategy": "rules"
}
} }