4 months ago
why are nginx startup and shutdown logs marked as errors?
0 Replies
4 months ago
they are marked in red because nginx is sending them to stderr
yup, and if no structured fields are provided, railway uses stream name to determine log level
gotcha that makes sense
can take a look to see if anything I can do to make them not sent to stderr
4 months ago
use caddy 🙂
4 months ago
depending on the usecase for nginx, it may be very valid
I'm doing some template variable injection stuff but imagine caddy can do the same.. will take a look at that as well
appreciate the recommendation
4 months ago
caddy supports environment variables natively in the caddyfile
4 months ago
for sure, what else did you hope to use nginx for? static site? proxy?
just a static site with header configuration and log stripping
curious when you'd recommend nginx over caddy 🤔
4 months ago
when? never really, caddy does it all
4 months ago
we really shilling caddy hard
4 months ago
same
already switching over haha
looks like nginx has slight edge in perf but in my case doesn't really matter 🤷♂️
4 months ago
if you are ever in a position where nginx vs caddy perf matters, then you can afford spinning up another replica
ok it wasn't THE worst one, but not something I want to do for a simple http server or a mux proxy
meh i never really minded nginx config but never used environment variables until now
after just having switched to caddy and using the native environment variables, i don't miss nginx
4 months ago
lets go, we converted another one
4 months ago
!s
Status changed to Solved brody • 4 months ago