Skip to content

Instantly share code, notes, and snippets.

@DdVwl6Fj3a
Created March 16, 2021 15:51
Show Gist options
  • Save DdVwl6Fj3a/b74ea62d7f0f43a9b1b3c458b708ccef to your computer and use it in GitHub Desktop.
Save DdVwl6Fj3a/b74ea62d7f0f43a9b1b3c458b708ccef to your computer and use it in GitHub Desktop.
cdn vmess h2 配置不通
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
}
}
}
{
"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":{}
}
{
"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": {}
}
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