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

7 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

1 Replies

jcode
PROOP

7 months ago

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


jcode
PROOP

7 months ago

It's a NodeJS backend connected to Postgres db


dev
MODERATOR

7 months ago

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


jcode
PROOP

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


dev
MODERATOR

7 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

7 months ago

i got both lol, should I remove public url?

1373973475273871600


dev
MODERATOR

7 months ago

what service is that from?


jcode
PROOP

7 months ago

Postgres


jcode
PROOP

7 months ago

I think those were auto-added by Railway


dev
MODERATOR

7 months ago

you don't need to remove that URL then


dev
MODERATOR

7 months ago

just don't use it


brody
EMPLOYEE

7 months ago

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


passos
MODERATOR

7 months ago

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


jcode
PROOP

7 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

7 months ago

Just to check some stuff


dev
MODERATOR

6 months ago

marking as solved


Status changed to Solved dev 7 months ago


Loading...