From a1fbc067fc94d9cbc3d90d15df7d61ba18e6ab8e Mon Sep 17 00:00:00 2001 From: EIKULG <34759969+EIKULG@users.noreply.github.com> Date: Thu, 18 Mar 2021 11:29:39 +0800 Subject: [PATCH] Create server.json --- Caddy2-WS-H2C-GRPC/server.json | 93 ++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 Caddy2-WS-H2C-GRPC/server.json diff --git a/Caddy2-WS-H2C-GRPC/server.json b/Caddy2-WS-H2C-GRPC/server.json new file mode 100644 index 0000000..453092d --- /dev/null +++ b/Caddy2-WS-H2C-GRPC/server.json @@ -0,0 +1,93 @@ +{ + "log": { + "loglevel": "warning" + }, + "inbounds": [ + { + "port": 2001, + "listen": "127.0.0.1", + "protocol": "vless", + "settings": { + "clients": [ + { + "id": "00000000-0000-0000-0000-000000000000" + } + ], + "decryption": "none" + }, + "streamSettings": { + "network": "ws", + "security": "none", + "wsSettings": { + "path": "/ws" + } + } + }, + { + "port": 2003, + "listen": "127.0.0.1", + "protocol": "vless", + "settings": { + "clients": [ + { + "id": "00000000-0000-0000-0000-000000000000" + } + ], + "decryption": "none" + }, + "streamSettings": { + "security": "none", + "network": "h2", + "httpSettings": { + "path": "/h2", + "host": [ + "xx.com" + ] + } + } + }, + { + "port": 2002, + "listen": "127.0.0.1", + "protocol": "vless", + "settings": { + "clients": [ + { + "id": "00000000-0000-0000-0000-000000000000" + } + ], + "decryption": "none" + }, + "streamSettings": { + "network": "grpc", + "grpcSettings": { + "serviceName": "grpc" + } + } + } + ], + "outbounds": [ + { + "tag": "direct", + "protocol": "freedom", + "settings": {} + }, + { + "tag": "blocked", + "protocol": "blackhole", + "settings": {} + } + ], + "routing": { + "domainStrategy": "AsIs", + "rules": [ + { + "type": "field", + "ip": [ + "geoip:private" + ], + "outboundTag": "blocked" + } + ] + } +}