3 years ago
I am trying to setup an nginx server to reverse proxy two other services backend & frontend, and expose it publicly via this nginx. I set port of both backend & frontend at 80, and both are not public, but I want to merge them such that / serves the frontend service and /api/ serves the backend service. But when I setup the nginx conf so and used the private networking address, it crashes and doesnt work. Please help
54 Replies
3 years ago
next start -H :: -p $PORT
3 years ago
make sure you have a service variable PORT = 3000
3 years ago
nope
3 years ago
delete line 33, 34
3 years ago
^
yes I have 🫡 , but it wil take a while to get build with this new package.json
3 years ago
and what's your new start command
3 years ago
okay just checking, since you like to change things from what I say
3 years ago
I'm happy I could help
3 years ago
thank you
3 years ago
I mean they're right, it is better suited for discord
3 years ago
that's your aws costs?
3 years ago
bro they won't even give me a sticker
3 years ago
I've been asking for stickers for so long
3 years ago
I'm just a community member
I will mail them, as reply that you helped a lot. And once we hit some bills they probably should value it, (I subsricbed to pro, just to see if they will support)
3 years ago
I'm too silly for them
3 years ago
maple syrup land, and I help people in the railway server for a living
I suggest you make a few templates and contribute them to railway, like the nginx and caddy ones
3 years ago
haha made you google
3 years ago
I have made a few templates, and I'll be adding the caddy template in the future
3 years ago
I currently have 2$
3 years ago
I don't know how it works, but oh well
3 years ago
pretty damn clean with caddy
{
admin off
persist_config off
auto_https off
log { format console }
}
:{$PORT} {
reverse_proxy frontend.railway.internal:3000
handle_path /api/* {
reverse_proxy backend.railway.internal:3000
}
}3 years ago
2 years ago
it's true for hobby and pro users
😦 Is there explicit support for it at the enterprise level or is it something you'd have to work with them on?
2 years ago
All good- we might have something for you, can you raise a direct support thread? (You should be able to open one)