Multiple services on a single domain
Hi! I have 3 services: API (Backend), Landing that uses this API (Frontend) and a Documentation for the API. These three services will be deployed on Railway, and I want to have one domain for all of them. What I'm talking about is called "Reverse Proxy" in Nginx. Does Railway have something like this? If not, what are possible workarounds?
For example, if request goes to
/api
, then service called Backend
will handle it.9 Replies
Project ID:
N/A
railway doesn't have anything like this natively unfortunately, you can always roll your own with nginx or caddy
Okay, got it, thanks!
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
railway doesn't have anything like this natively unfortunately, you can always roll your own with nginx or caddy
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
nginx or caddy
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
here's the railway provided template for nginx, it starts a static file server, but add your own config with proxy routes setup, and have the dockerfile put the config file in the correct location and you're set
https://github.com/railwayapp-templates/nginx
but this is someone else's thread, so for any future questions, could you please open your own help thread?