Skip to content
Cannot remove TCP proxy from Postgres services: no delete option
globiq
OP

19 days ago

In my projects Trinitarian and renewed-happiness, the Postgres service has a TCP proxy (mainline.proxy.rlwy.net) under Public Networking that I cannot delete: no delete button, and the arrow is greyed out. Please tell me how to remove public TCP access from these database services, or remove it for me.

1 Reply

Status changed to Awaiting Railway Response Railway • 19 days ago


19 days ago

You don't need staff for this. If the dashboard won't let you remove the proxy, the Railway CLI can delete it.

  1. Link to the project and environment (railway link), then list the proxy on the Postgres service:

railway tcp-proxy list --service Postgres

  1. Delete it. The argument can be the proxy ID, its domain, its endpoint, the proxy port, or the application port (5432):

railway tcp-proxy delete 5432 --service Postgres

Leave out --yes if you want to confirm interactively. (docs: https://docs.railway.com/cli/tcp-proxy)

  1. Do the same in the other project. You need CLI 5.15.0 or newer, because tcp-proxy was added in that release (railway upgrade).

Before you delete it, check that nothing outside Railway connects through mainline.proxy.rlwy.net (local tools, external apps). Anything that uses DATABASE_PUBLIC_URL will stop working. Services inside the project can keep using DATABASE_URL over the private network.

I don't know why the dashboard button is greyed out. That part only the Railway team can explain.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...