Reverse Proxy in Railway to Access Planka in Railway
engkeen-source
PROOP

10 months ago

Currently I had deployed nginx reverse proxy manager in Railway and also planka in railway, I want to use my domain to point to reverse proxy manager and point to internal planka url.

My DNS is managed by Cloudfare.

I access https://planka.autolabkit.com/ then it will point to nginx reverse proxy manager public url which is
https://nginx-proxy-manager-production-33a7.up.railway.app/

then reverse proxy manager have a proxy host which will point planka.autolabkit.com to http://planka.railway.internal:3000 which is planka internal URL.

But when i access planka.autolabkit.com then it is not working.

Can you help me on that.

Now when i access planka.autolabkit.com, i get below error

Not Found

The train has not arrived at the station.

Please check your network settings to confirm that your domain has provisioned.

If you are a visitor, please let the owner know you're stuck at the station.

Request ID:
WzsqlrPqQL2SBgBGkwXc6A_1721921752

Solved

13 Replies

brody
EMPLOYEE

10 months ago

Hello,

So I can better help you I would like to understand why a proxy is needed.

Why not just call its own public domain?


Status changed to Awaiting User Response Railway 10 months ago


engkeen-source
PROOP

10 months ago

I want to embedded the planka application to my react app, as iframe, so i need to do reverse proxy.


Status changed to Awaiting Railway Response Railway 10 months ago


brody
EMPLOYEE

10 months ago

Gotcha, then please do not use NGINX, instead I recommend using Caddy.

This template will get you most of the way there -

https://railway.com/template/7uDSyj


Status changed to Awaiting User Response Railway 10 months ago


engkeen-source
PROOP

10 months ago

so nginx cannot but candy will work?


Status changed to Awaiting Railway Response Railway 10 months ago


brody
EMPLOYEE

10 months ago

Nginx does not work well when the upstream is a dynamic IP address.

Caddy has no issues.


Status changed to Awaiting User Response Railway 10 months ago


engkeen-source
PROOP

10 months ago

I see, i had deploy candy, which is below 4 variable.

BACKEND_DOMAIN="planka.railway.internal"

BACKEND_PORT="3000"

FRONTEND_DOMAIN="app.autolabkit.com"

FRONTEND_PORT="443"

backend domain and port is hosted on railway, but front end is hosted in vercel.

where i click my candy url, https://caddy-proxy-production-423e.up.railway.app/

it did not go to planka.

can you assist me.


Status changed to Awaiting Railway Response Railway 10 months ago


brody
EMPLOYEE

10 months ago

You need to set the frontend domain and port to that of planka.

You can leave the backend unset.


Status changed to Awaiting User Response Railway 10 months ago


engkeen-source
PROOP

10 months ago

can you please guide me how to fix it, if i left backend unset, then it wont work


Status changed to Awaiting Railway Response Railway 10 months ago


brody
EMPLOYEE

10 months ago

You should edject from the template in the service settings and modify the repo to not need a backend set.


Status changed to Awaiting User Response Railway 10 months ago


engkeen-source
PROOP

10 months ago

I had did what you mentioned and i still get error, candy proxy url cannot access the private network of the planka. can you advise.


Status changed to Awaiting Railway Response Railway 10 months ago


brody
EMPLOYEE

10 months ago

Is planka listening on IPv6?

The private network is IPv6 only so this is required.


Status changed to Awaiting User Response Railway 10 months ago


brody

Is planka listening on IPv6?The private network is IPv6 only so this is required.

engkeen-source
PROOP

10 months ago

i configure my planka instance to support ipv6

ports: - "[::]:3000:1337"

in docker-compose.yml but its still not working, can you help me check is my planka support ipv6


Status changed to Awaiting Railway Response Railway 10 months ago


brody
EMPLOYEE

10 months ago

We do not support docker-compose in that way, you would need to configure planka to listen on IPv6.


Status changed to Awaiting User Response Railway 10 months ago


Railway
BOT

4 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 4 months ago


Loading...