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

a year 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

a year ago

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


jcode
PROOP

a year ago

It's a NodeJS backend connected to Postgres db


a year ago

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


jcode
PROOP

a year 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?


a year 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

a year ago

i got both lol, should I remove public url?

1373973475273871600


a year ago

what service is that from?


jcode
PROOP

a year ago

Postgres


jcode
PROOP

a year ago

I think those were auto-added by Railway


a year ago

you don't need to remove that URL then


a year ago

just don't use it


a year ago

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


a year ago

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


jcode
PROOP

a year 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

a year ago

Just to check some stuff


a year ago

marking as solved


Status changed to Solved dev 11 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...