-
-
Save DdVwl6Fj3a/b74ea62d7f0f43a9b1b3c458b708ccef to your computer and use it in GitHub Desktop.
cdn vmess h2 配置不通
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
domain { | |
tls /root/domain.crt /root/domain.key | |
log { | |
output file /var/log/caddy/access.log | |
level debug | |
} | |
root * /var/www | |
file_server | |
reverse_proxy /path http://127.0.0.1:44222 { | |
transport http { | |
versions h2c 2 | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"log":{ | |
"loglevel":"info" | |
}, | |
"dns":{}, | |
"stats":{}, | |
"inbounds":[ | |
{ | |
"port":"1080", | |
"protocol":"socks", | |
"settings":{ | |
"auth":"noauth", | |
"udp":true | |
}, | |
"tag":"in-0" | |
}, | |
{ | |
"port":"1081", | |
"protocol":"http", | |
"settings":{}, | |
"tag":"in-1" | |
} | |
], | |
"outbounds":[ | |
{ | |
"protocol":"vmess", | |
"settings":{ | |
"vnext":[ | |
{ | |
"address":"domain", | |
"port":443, | |
"users":[ | |
{ | |
"id":"8e9dad36-3166-49b6-8565-4f1d45b2d3cf", | |
"alterId":2 | |
} | |
] | |
} | |
] | |
}, | |
"tag":"out-0", | |
"streamSettings":{ | |
"network":"h2", | |
"security":"tls", | |
"httpSettings":{ | |
"path":"/path", | |
"host":[ | |
"domain" | |
] | |
} | |
} | |
}, | |
{ | |
"tag":"direct", | |
"protocol":"freedom", | |
"settings":{} | |
}, | |
{ | |
"tag":"blocked", | |
"protocol":"blackhole", | |
"settings":{} | |
} | |
], | |
"routing":{ | |
"domainStrategy":"IPOnDemand", | |
"rules":[ | |
{ | |
"type":"field", | |
"ip":[ | |
"geoip:private" | |
], | |
"outboundTag":"direct" | |
} | |
] | |
}, | |
"policy":{}, | |
"reverse":{}, | |
"transport":{} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"log": { | |
"access": "/var/log/v2ray/access.log", | |
"error": "/var/log/v2ray/error.log", | |
"loglevel": "info" | |
}, | |
"dns": {}, | |
"stats": {}, | |
"inbounds": [ | |
{ | |
"port": 44222, | |
"protocol": "vmess", | |
"settings": { | |
"clients": [ | |
{ | |
"id": "8e9dad36-3166-49b6-8565-4f1d45b2d3cf", | |
"alterId": 2 | |
} | |
] | |
}, | |
"tag": "in-0", | |
"streamSettings": { | |
"network": "h2", | |
"security": "none", | |
"httpSettings": { | |
"path": "/path", | |
"host": [ | |
"domain" | |
] | |
} | |
}, | |
"listen": "127.0.0.1" | |
} | |
], | |
"outbounds": [ | |
{ | |
"tag": "direct", | |
"protocol": "freedom", | |
"settings": {} | |
}, | |
{ | |
"tag": "blocked", | |
"protocol": "blackhole", | |
"settings": {} | |
} | |
], | |
"routing": { | |
"domainStrategy": "AsIs", | |
"rules": [ | |
{ | |
"type": "field", | |
"ip": [ | |
"geoip:private" | |
], | |
"outboundTag": "blocked" | |
} | |
] | |
}, | |
"policy": {}, | |
"reverse": {}, | |
"transport": {} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2021/03/16 23:38:25 tcp:127.0.0.1:60975 accepted tcp:mtalk.google.com:443 [out-0] | |
2021/03/16 23:38:29 [Info] [794341683] v2ray.com/core/app/proxyman/inbound: connection ends > v2ray.com/core/proxy/socks: connection ends > context canceled | |
2021/03/16 23:38:29 [Info] [3655691533] v2ray.com/core/app/proxyman/inbound: connection ends > v2ray.com/core/proxy/socks: connection ends > context canceled | |
2021/03/16 23:38:29 [Info] [1479831187] v2ray.com/core/app/proxyman/inbound: connection ends > v2ray.com/core/proxy/socks: connection ends > context canceled |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment