Cloudflare Tunnels - Connection Refused
Hello. I am running a code server on a Linux VPS within Docker, I have made a tunnel pointing to the server's localhost:8443 and cloudflare reports the tunnel as healthy. However, when I attempt to access the tunnel via its URL, the 502 Bad Gateway page shows up. However, if I peek into my cloudflared's docker logs, it reports that the connection has been refused.
2 Replies
Here's my docker-compose.yml
You need to change your tunnel config to point to
http://code-server:8443
. localhost
is the cloudflared container