I have a cloudflared project which includes a Nextjs application and a Postgres DB.
The nextjs application talks privately with the Postgres db through private networking.
The tunnel is setup correctly for the nextjs application over http and it works fine.
What i would like to achieve is to be able to connect to the postgres db from my local machine (whitelisting my ip address) without publicly exposing the db to the internet.
So i tried to assign a **Cloudflare Tunnel Public Hostname **to Postgres (db.mydomain.com) and then make it accessible by certain IPs with Cloudflare ACLs.
I am definitely doing something wrong here:
I have created a public hostname with tcp protocol and passed in the railway private networking url (see image).
but unfortunately when i try to connect to the db from my local machine, the connection times out.
PS: i have not setup any ACLs yet so i am just trying to successfully connect to the db first.
I really hope someone can give me a hand on this one.
Thanks in advance