RAILWAY_PUBLIC_DOMAIN with multiple domains
matthiasriener
PROOP

2 years ago

Hello everyone. I have a service (caddy proxy), that has multiple domains - each one of the domains is a different tenant for my project. I would like to configure the backend to be able to handle requests for all the domains. The RAILWAY_PUBLIC_DOMAIN variable just gives me one of the currently 3 set domains. Is there any better way to handle this other than hardcoding the domains into the backend?

Closed

2 Replies

matthiasriener
PROOP

2 years ago

72fd79dc-7af9-4071-9a9d-f9697585ae65


2 years ago

unfortunately we dont have a variable for every domain, the current variable would be the first added domain.

you would have to call the api to get all domains for a service


Welcome!

Sign in to your Railway account to join the conversation.

Loading...