R
Railway3w ago
Matts

RAILWAY_PUBLIC_DOMAIN with multiple domains

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?
3 Replies
Percy
Percy3w ago
Project ID: 72fd79dc-7af9-4071-9a9d-f9697585ae65
Matts
MattsOP3w ago
72fd79dc-7af9-4071-9a9d-f9697585ae65
Brody
Brody2w 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
Want results from more Discord servers?
Add your server