From 42c954e6efd4f7428a681020319ddc7cd885eb9d Mon Sep 17 00:00:00 2001 From: KiriKira <32393884+KiriKira@users.noreply.github.com> Date: Thu, 1 Feb 2018 22:15:53 +0800 Subject: [PATCH] beautified --- TCP+TLS/config_client.json | 206 ++++++++++++++++++------------------- TCP+TLS/config_server.json | 166 +++++++++++++++--------------- 2 files changed, 186 insertions(+), 186 deletions(-) diff --git a/TCP+TLS/config_client.json b/TCP+TLS/config_client.json index a16e8f3..e6a5018 100644 --- a/TCP+TLS/config_client.json +++ b/TCP+TLS/config_client.json @@ -1,106 +1,106 @@ { - "outbound": { - "streamSettings": { - "network": "tcp", - "kcpSettings": null, - "wsSettings": null, - "tcpSettings": null, - "tlsSettings": {}, - "security": "tls" - }, - "tag": "agentout", - "protocol": "vmess", - "mux": { - "enabled": true - }, - "settings": { - "vnext": [ - { - "users": [ - { - "alterId": 64, - "security": "none", - "id": "0cdf8a45-303d-4fed-9780-29aa7f54175e" - } - ], - "port": 443, - "address": "example.domain" + "dns": { + "servers": [ + "8.8.8.8", + "8.8.4.4", + "localhost" + ] + }, + "inbound": { + "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": { + "enabled": true + }, + "protocol": "vmess", + "settings": { + "vnext": [ + { + "address": "example.domain", + "port": 443, + "users": [ + { + "alterId": 64, + "id": "0cdf8a45-303d-4fed-9780-29aa7f54175e", + "security": "none" + } + ] + } + ] + }, + "streamSettings": { + "kcpSettings": null, + "network": "tcp", + "security": "tls", + "tcpSettings": null, + "tlsSettings": {}, + "wsSettings": null + }, + "tag": "agentout" + }, + "outboundDetour": [ + { + "protocol": "freedom", + "settings": { + "response": null + }, + "tag": "direct" + }, + { + "protocol": "blackhole", + "settings": { + "response": { + "type": "http" + } + }, + "tag": "blockout" + } + ], + "routing": { + "settings": { + "domainStrategy": "IPIfNonMatch", + "rules": [ + { + "domain": null, + "ip": [ + "0.0.0.0/8", + "10.0.0.0/8", + "100.64.0.0/10", + "127.0.0.0/8", + "169.254.0.0/16", + "172.16.0.0/12", + "192.0.0.0/24", + "192.0.2.0/24", + "192.168.0.0/16", + "198.18.0.0/15", + "198.51.100.0/24", + "203.0.113.0/24", + "::1/128", + "fc00::/7", + "fe80::/10" + ], + "outboundTag": "direct", + "port": null, + "type": "field" + } + ] + }, + "strategy": "rules" } - ] - } - }, - "log": { - "access": "/var/log/v2ray/access.log", - "loglevel": "info", - "error": "/var/log/v2ray/error.log" - }, - "outboundDetour": [ - { - "tag": "direct", - "protocol": "freedom", - "settings": { - "response": null - } - }, - { - "tag": "blockout", - "protocol": "blackhole", - "settings": { - "response": { - "type": "http" - } - } - } - ], - "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": { - "settings": { - "rules": [ - { - "ip": [ - "0.0.0.0/8", - "10.0.0.0/8", - "100.64.0.0/10", - "127.0.0.0/8", - "169.254.0.0/16", - "172.16.0.0/12", - "192.0.0.0/24", - "192.0.2.0/24", - "192.168.0.0/16", - "198.18.0.0/15", - "198.51.100.0/24", - "203.0.113.0/24", - "::1/128", - "fc00::/7", - "fe80::/10" - ], - "domain": null, - "type": "field", - "port": null, - "outboundTag": "direct" - } - ], - "domainStrategy": "IPIfNonMatch" - }, - "strategy": "rules" - }, - "dns": { - "servers": [ - "8.8.8.8", - "8.8.4.4", - "localhost" - ] - } } diff --git a/TCP+TLS/config_server.json b/TCP+TLS/config_server.json index 5ee1a40..025808a 100644 --- a/TCP+TLS/config_server.json +++ b/TCP+TLS/config_server.json @@ -1,86 +1,86 @@ { - "outbound": { - "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": { - "streamSettings": { - "network": "tcp", - "kcpSettings": null, - "wsSettings": null, - "tcpSettings": null, - "tlsSettings": { - "certificates": [ - { - "keyFile": "/path/to/example.domain.key", - "certificateFile": "/path/to/example.domain/fullchain.cer" - } - ] - }, - "security": "tls" - }, - "listen": null, - "protocol": "vmess", - "port": 443, - "settings": { - "ip": null, - "udp": true, - "clients": [ - { - "alterId": 64, - "security": "none", - "id": "e2b39869-7e9e-411b-a561-00904419bed9" + "dns": null, + "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": { + "kcpSettings": null, + "network": "tcp", + "security": "tls", + "tcpSettings": null, + "tlsSettings": { + "certificates": [ + { + "certificateFile": "/path/to/example.domain/fullchain.cer", + "keyFile": "/path/to/example.domain.key" + } + ] + }, + "wsSettings": null + } + }, + "inboundDetour": null, + "log": { + "access": "/var/log/v2ray/access.log", + "error": "/var/log/v2ray/error.log", + "loglevel": "info" + }, + "outbound": { + "mux": null, + "protocol": "freedom", + "settings": null, + "streamSettings": null, + "tag": null + }, + "outboundDetour": [ + { + "protocol": "blackhole", + "settings": null, + "tag": "blocked" + } + ], + "routing": { + "settings": { + "domainStrategy": null, + "rules": [ + { + "domain": null, + "ip": [ + "0.0.0.0/8", + "10.0.0.0/8", + "100.64.0.0/10", + "127.0.0.0/8", + "169.254.0.0/16", + "172.16.0.0/12", + "192.0.0.0/24", + "192.0.2.0/24", + "192.168.0.0/16", + "198.18.0.0/15", + "198.51.100.0/24", + "203.0.113.0/24", + "::1/128", + "fc00::/7", + "fe80::/10" + ], + "outboundTag": "blocked", + "port": null, + "type": "field" + } + ] + }, + "strategy": "rules" } - ], - "auth": null - } - }, - "outboundDetour": [ - { - "tag": "blocked", - "protocol": "blackhole", - "settings": null - } - ], - "routing": { - "strategy": "rules", - "settings": { - "rules": [ - { - "ip": [ - "0.0.0.0/8", - "10.0.0.0/8", - "100.64.0.0/10", - "127.0.0.0/8", - "169.254.0.0/16", - "172.16.0.0/12", - "192.0.0.0/24", - "192.0.2.0/24", - "192.168.0.0/16", - "198.18.0.0/15", - "198.51.100.0/24", - "203.0.113.0/24", - "::1/128", - "fc00::/7", - "fe80::/10" - ], - "domain": null, - "type": "field", - "port": null, - "outboundTag": "blocked" - } - ], - "domainStrategy": null - } - }, - "dns": null }