From 04d4cebab58136219fd95f4af06a7165496b4c48 Mon Sep 17 00:00:00 2001 From: EIKULG <34759969+EIKULG@users.noreply.github.com> Date: Thu, 18 Mar 2021 11:35:35 +0800 Subject: [PATCH] Create client.json --- Caddy2-WS-H2C-GRPC/client.json | 117 +++++++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+) create mode 100644 Caddy2-WS-H2C-GRPC/client.json diff --git a/Caddy2-WS-H2C-GRPC/client.json b/Caddy2-WS-H2C-GRPC/client.json new file mode 100644 index 0000000..2d59b1b --- /dev/null +++ b/Caddy2-WS-H2C-GRPC/client.json @@ -0,0 +1,117 @@ +{ + "log": {}, + "inbounds": [ + { + "port": "1080", + "protocol": "socks", + "settings": { + "auth": "noauth", + "udp": true + } + }, + { + "port": "1081", + "protocol": "http", + "settings": {} + } + ], + "outbounds": [ + { + "protocol": "vless", + "settings": { + "vnext": [ + { + "address": "xx.com", + "port": 443, + "users": [ + { + "id": "", + "encryption": "none" + } + ] + } + ] + }, + "streamSettings": { + "network": "h2", + "security": "tls", + "httpSettings": { + "host": [ + "xx.com" + ], + "path": "/h2" + } + } + }, + { + "protocol": "vless", + "settings": { + "vnext": [ + { + "address": "xx.com", + "port": 443, + "users": [ + { + "id": "", + "encryption": "none" + } + ] + } + ] + }, + "streamSettings": { + "network": "ws", + "security": "tls", + "wsSettings": { + "path": "/ws?ed=2048" + } + } + }, + { + "protocol": "vless", + "settings": { + "vnext": [ + { + "address": "xx.com", + "port": 443, + "users": [ + { + "id": "", + "encryption": "none" + } + ] + } + ] + }, + "streamSettings": { + "network": "grpc", + "security": "tls", + "grpcSettings": { + "serviceName": "grpc" + } + } + }, + { + "tag": "direct", + "protocol": "freedom", + "settings": {} + }, + { + "tag": "blocked", + "protocol": "blackhole", + "settings": {} + } + ], + "routing": { + "domainStrategy": "IPOnDemand", + "rules": [ + { + "type": "field", + "ip": [ + "geoip:private" + ], + "outboundTag": "direct" + } + ] + } +}