Custom domain is not working
matheuslc
FREEOP

2 months ago

hey everyone! I have setup a custom domain for my service, and even though it is correctly set, when I try to access it, it's returning a 502 bad gateway.

I used the cloudflare integration to setup, and the the application works, which I can validate using Railway builtín domain

Solved$10 Bounty

Pinned Solution

Make sure that the port your application is listening to is the same port your URL is mapped to.

3 Replies

Railway
BOT

2 months ago

Your custom domain DNS is propagated and the certificate is valid on our side, so the 502 is likely caused by your Cloudflare SSL/TLS encryption mode. Make sure it is set to Full (not "Flexible" and not "Full (Strict)") in your Cloudflare dashboard under SSL/TLS > Overview, as described in our Cloudflare configuration docs.


Status changed to Awaiting User Response Railway about 2 months ago


Status changed to Awaiting Railway Response Railway about 2 months ago


Status changed to Open Railway about 2 months ago


Make sure that the port your application is listening to is the same port your URL is mapped to.


matheuslc
FREEOP

2 months ago

oh, that was it! What is strange is that in the other built-in subdominant it moved the port to 80 instead of 8080 🤔

Nevertheless, thank you a loooot!


Status changed to Solved brody about 2 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...