v2fly / v2ray-examples

v2ray-core 的模板们
2.35k stars 740 forks source link

请问caddy v2.1不支持vlees吗 #11

Closed nanqic closed 4 years ago

nanqic commented 4 years ago

vps: CentOS8 caddy version: v2.1.1 h1:X9k1+ehZPYYrSqBvf/ocUgdLSRIuiNiMo7CvyGUQKeA= Caddyfile my domain { root * /usr/share/caddy file_server

reverse_proxy /path 127.0.0.1:25668 {
    transport http {
        versions h2c
    }
}

}

config.json { "log": { "loglevel": "warning" }, "inbounds": [ { "port": 25668, "listen": "127.0.0.1", "protocol": "vless", "settings": { "clients": [ { "id": "6a5d43bd-c74a-4f36-87f5-7c2c46338dc0", "email": "love@apache.org" } ] }, "streamSettings": { "security": "none", "network": "h2", "httpSettings": { "path": "/mysite", "host": [ "my domain" ] } } } ], "outbounds": [ { "tag": "direct", "protocol": "freedom", "settings": {} }, { "tag": "blocked", "protocol": "blackhole", "settings": {} } ], "routing": { "domainStrategy": "AsIs", "rules": [ { "type": "field", "ip": [ "geoip:private" ], "outboundTag": "blocked" } ] } }

伪装的网站可以正常访问, 但是v2ray报错 systemctl status v2ray ● v2ray.service - V2Ray Service Loaded: loaded (/etc/systemd/system/v2ray.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Tue 2020-08-25 14:22:53 UTC; 969ms ago Process: 116917 ExecStart=/usr/local/bin/v2ray -config /usr/local/etc/v2ray/config.json (code=exited, status=23) Main PID: 116917 (code=exited, status=23) Aug 25 14:22:53 sksmg systemd[1]: v2ray.service: Service RestartSec=100ms expired, scheduling restart. Aug 25 14:22:53 sksmg systemd[1]: v2ray.service: Scheduled restart job, restart counter is at 5. Aug 25 14:22:53 sksmg systemd[1]: Stopped V2Ray Service. Aug 25 14:22:53 sksmg systemd[1]: v2ray.service: Start request repeated too quickly. Aug 25 14:22:53 sksmg systemd[1]: v2ray.service: Failed with result 'exit-code'. Aug 25 14:22:53 sksmg systemd[1]: Failed to start V2Ray Service.

status=23是指23行有错吗? 23行是path, 我检查了没有错. 想知道解决办法, 望大佬答复, 不胜感激!