a year ago
why are nginx startup and shutdown logs marked as errors?
28 Replies
a year 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
a year ago
use caddy 🙂
a year 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
a year ago
caddy supports environment variables natively in the caddyfile
a year 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 🤔
a year ago
when? never really, caddy does it all
a year ago
we really shilling caddy hard
a year ago
same
already switching over haha
looks like nginx has slight edge in perf but in my case doesn't really matter 🤷♂️
a year 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
a year ago
lets go, we converted another one
a year ago
!s
Status changed to Solved brody • about 1 year ago