How to change postgres public url to private url?
jcode
PROOP

10 months ago

This says it will create egress fees even tho it's linked via variables with the backend. How do I fix this?

Solved

16 Replies

jcode
PROOP

10 months ago

5a8681b5-f0ee-46a2-bed3-62fba619de18


jcode
PROOP

10 months ago

It's a NodeJS backend connected to Postgres db


10 months ago

it'll only use egress fees if you actually use it, you don't have to make use of it


jcode
PROOP

10 months ago

But it says to change to railways private domain instead? But the service uses the internal postgres env variables references already so isn't that private already?


10 months ago

But it says to change to railways private domain instead?
What you're seeing there is an automated warning based on the content of the variable, Railway's seeing that the variable references a public database url and so it gave that warning, but the variable is only actually there for you to use so if you're not using it then no ones using it so it's completely fine

But the service uses the internal postgres env variables references already so isn't that private already?
if you're using the DATABASE_URL variable and not the DATABASE_PUBLIC_URL then you're using the private network


jcode
PROOP

10 months ago

i got both lol, should I remove public url?

1373973475273871600


10 months ago

what service is that from?


jcode
PROOP

10 months ago

Postgres


jcode
PROOP

10 months ago

I think those were auto-added by Railway


10 months ago

you don't need to remove that URL then


10 months ago

just don't use it


10 months ago

going to reiterate what fragly has said, please do not modify variables on your database


10 months ago

If you want to completely remove public access to your database, remove the TCP proxy domain instead.


jcode
PROOP

10 months ago

Yeah but now I think about it.. maybe it's better leaving that there just in case I do want to be able to query on it manually via remote.


jcode
PROOP

10 months ago

Just to check some stuff


10 months ago

marking as solved


Status changed to Solved dev 10 months ago


Loading...