a year ago
Railway does not seem to support this common use case. For example exposing a reverse proxy with caddy at something.example.com on ports 80 and 443. I can only expose the domain on a single port.
What do people do as a workaround?
4 Replies
a year ago
Instead of exposing multiple ports you can expose multiple domains that map to a specific internal ports, you can add as many as your plan permits, this is done so that all http traffic is secured.
a year ago
I want to do this for PostHog, who depend on a single domain with multiple exposed ports. Seems like I'd have to add another layer on top of it if I want to do it with Railway. How do you recommend achieving this?
a year ago
You simply can not expose multiple ports through a single domain.
I would be surprised if there is no way to specify an entire endpoint instead of just the port.
a year ago
Ok thanks, I went a different way with PostHog, I used NextJS rewrites instead.