R
RailwayPelfox

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.
P
Percy380d ago
Project ID: N/A
B
Brody380d ago
railway doesn't have anything like this natively unfortunately, you can always roll your own with nginx or caddy
P
Pelfox380d ago
Okay, got it, thanks!
UU
Unknown User372d ago
B
Brody372d ago
railway doesn't have anything like this natively unfortunately, you can always roll your own with nginx or caddy
UU
Unknown User371d ago
B
Brody371d ago
nginx or caddy
UU
Unknown User370d ago
B
Brody370d ago
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?
Want results from more Discord servers?
Add your server
More Posts
Deploy from GitHub Repo exits without reasonThis is for a Flask app, but I could see how it could get confused. What/why?Postgresql paused after month limit restoreHi, it´s supposed that datatabases should be restored after month limit, but my databases are still Card declinedYou have an unpaid invoice. Click here to pay your invoice in order to avoid disconnection of servicLong Running ProcessI have a process that takes a little over 40 minutes to complete and have it running once a day usinPostgres using too much memoryI am being overcharged due to my postgres instance, however I cannot restart it to free the memory. Can’t find tables after loading them in from local .sql file using command lineHello, not sure if this isn’t a common pattern(I may just end up using a Docker container for this).Abnormal memory usage on Postgresql pluginHello, I'm having an abnormal memory usage on my Postgresql database Any chance you can **restart Server logs?I am wondering how to inspect the application server logs. Doing `railway logs` just tails the mostA lil help with the pricing and plansi have a smol app. just a discord bot that used maybe 0.5 to 1 dollar last month. now to my understaRailway up errors with 413 payload too large with project size is 34,1 MB on diskAccording to the docs, the railway up command will fail for projects over 50MB, but my project size dayjs timezone invalid dateDoes anybody knows how I can make dayjs timezone plugin work in railway?Error: Cannot find module '/app/src/app.js' on deployi have this script on my package.json `"start": "cross-env NODE_ENV=production node ./src/app.js",`How to host my bot discord?Good evening, I would like to know how to host my bot discord. I have done everything as it should bCannot create code snapshot right nowPID: a45af505-1c73-4eb1-82a2-a15c9c5bd2f8 Hi guys, I'm getting this error repeatedly: `Cannot creHey, how can I specify a pnpm version to use?I tried setting this in `package.json`: ```json "engines": { "pnpm": "8.x" }, ``` But it stNew Service ErroringHello, I have added a new service to a project which is an exact copy of another service. It is a noOverride builderI have a django project and in the root directory there is a Dockerfile. However, I have configured Template does not deploy the serviceProject ID: d87cd8c3-6fd5-49e4-925a-e7cc89fae4a5 I'm trying to deploy a simple template (https://raConnection error: Error: querySrv ENOTFOUND _mongodb._tcp.cluster0.a7id2.mongodb.netI need toput railway ip to my atlas. where to find tihs IP?Nuxt deployment failsI am trying to deploy my nuxtjs app, however building the app fails. Here is the error: #13 4.02