Caddyfile configuration v2ray problem

Caddyfile configuration file:
Mywww.com
{
Tls /etc/ssl/caddy/mywww.com.crt /etc/ssl/caddy/mywww.com.key
Gzip
Timeouts none
Proxy /ray 127.0.0.1:12015 {
Websocket
Header_upstream -Origin
}
Root /var/www
}

V2ray config.json file:
{
“inbounds”: [
{
“port”: 12015,
“listen”: “127.0.0.1”,
“protocol”: “vmess”,
“settings”: {
“clients”: [
{
“id”: “d230b52a-1a37-40c0-a199-70f63c34ca1b”,
“alterId”: 233
}
]
},
“streamSettings”: {
“network”: “ws”,
“wsSettings”: {
“path”: “/ray”
}
}
}
],
“outbounds”: [
{
“protocol”: “freedom”,
“settings”: {}
}
]
}
Problem: caddy display is working properly and can’t connect to the internet

Hi there,

We’re aware of issues with V2Ray. Can you please post the following information:

  • Your full Caddyfile (without changes)
  • Your full logs (from your Caddy process log and/or systemd/journalctl)
  • Full and complete error messages

Please use code blocks (3 backticks on their own line: ```) for code/config/logs.

Thank you!

maybe it’s not a caddy problem.
the v2ray config template https://github.com/veekxt/v2ray-template/tree/master/websocket%2Bvmess%2Bnginx-or-caddy%2Btls may help you

Yep, it’s most definitely a V2Ray problem. We’re debugging it here as well:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.