Cloudflare tunnels with Postgres db
I am trying to connect to my postgres database which is running on vps through coolify on docker a824efdaa57a postgres:17-alpine “docker-entrypoint.s…” 13 hours ago Up 13 hours (healthy) 0.0.0.0:5432->5432/tcp, [::]:5432->5432/tcp cwcw0w8wdsdjeqsdhfenedfw, already set cloudflared to my vps and it is working on my main domain but i cant get it to connect to my postgres db i get this error 2025-07-14T12:32:54Z ERR failed to connect to origin error=”websocket: bad handshake” originURL=https://db.mywebsite.com, here is my config=”{”ingress”:[{”hostname”:”*.mywebsite.com”, ”originRequest”:{”originServerName”:”mywebsite.com”}, ”service”:”http://localhost:80\"}, {”hostname”:”db.mywebsite.com”, ”originRequest”:{}, ”service”:”tcp://localhost:5432”}, {”service”:”http_status:404”}], ”warp-routing”:{”enabled”:false}}” version=21
1 Reply
Hello, Kenpachi.
Were you able to connect?
If not, can you tell me how you're connecting to your Postgres system using db.mywebsite.com?