Cloudflare Tunnel

a year ago

Description: Sets up Cloudflare Tunnel within your Railway project!

Category: Other

URL: https://railway.app/template/cf-tunnel

4 Replies

a year ago

this is awesome!


skyf4ll
TRIAL

a year ago

Thanks for setting this template up!

I think the SSL mode on cloudflare needs to be set to Full (Strict) though.


a year ago

Indeed it does, please check out the overview for full instructions


mathewcst
PRO

2 days ago

A suggestion:

Document that some services (like SvelteKit) start with host 0.0.0.0, that would make the Tunnel to fail. My fix was, on my service variables, create a HOSTNAME variable (which is the same as my internal URL) and, on my Docker image, run with that host.

E.g.
Internal URL: myapp.railway.internal
VAR: HOSTNAME: myapp
Dockerfile: HOST=$HOSTNAME node index.js


Cloudflare Tunnel - Railway Help Station