#Is it possible to whitelist IPs on railway?

16 messages · Page 1 of 1 (latest)

plain flint
#

I want to setup cloudflare and then only allow cloudflare to make API requests to my backend hosted on railwat. Where can I add which IPs can only access the backend?

ivory grailBOT
#

Project ID: N/A

plain flint
#

N/A

quick scroll
plain flint
quick scroll
#

ooh I see what you mean

#

I don't think there's a place where you can do that on railway if not on your app

plain flint
#

I see :/

timber knot
#

fragly is correct, railway does not offer any firewall rules, this is something your app needs to handle

plain flint
timber knot
#

doesnt stop someone from accessing the railway domain of your app though

plain flint
#

I believe I can remove the default generate railway domain

#

that way I force everyone to use my custom domain through cloudflare

timber knot
#

you can still access the railway app via a railway domain, the cname value railway gives you

#

but thats random so it should be sufficient

#

just something to keep in mind