nginx start and stop logs considered errors
dillonstreator
HOBBYOP

a year ago

why are nginx startup and shutdown logs marked as errors?

Solved

28 Replies

brody
EMPLOYEE

a year ago

they are marked in red because nginx is sending them to stderr


maddsua
HOBBY

a year ago

yup, and if no structured fields are provided, railway uses stream name to determine log level


dillonstreator
HOBBYOP

a year ago

gotcha that makes sense
can take a look to see if anything I can do to make them not sent to stderr


brody
EMPLOYEE

a year ago

use caddy 🙂


maddsua
HOBBY

a year ago

actually a valid suggestion lmao


brody
EMPLOYEE

a year ago

depending on the usecase for nginx, it may be very valid


dillonstreator
HOBBYOP

a year ago

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


brody
EMPLOYEE

a year ago

caddy supports environment variables natively in the caddyfile


dillonstreator
HOBBYOP

a year ago

nice so probably less of a PITA to setup lol


brody
EMPLOYEE

a year ago

for sure, what else did you hope to use nginx for? static site? proxy?


dillonstreator
HOBBYOP

a year ago

just a static site with header configuration and log stripping
curious when you'd recommend nginx over caddy 🤔


maddsua
HOBBY

a year ago

sounds like a perfect use case for caddy


brody
EMPLOYEE

a year ago

when? never really, caddy does it all


maddsua
HOBBY

a year ago

idk at least I wouldn't even consider nginx for this job


brody
EMPLOYEE

a year ago

we really shilling caddy hard


maddsua
HOBBY

a year ago

I just don't like nginx tbh


maddsua
HOBBY

a year ago

it's mid


brody
EMPLOYEE

a year ago

same


dillonstreator
HOBBYOP

a year ago

already switching over haha
looks like nginx has slight edge in perf but in my case doesn't really matter 🤷‍♂️


maddsua
HOBBY

a year ago

please don't look in the direction of haproxy 💀


brody
EMPLOYEE

a year ago

if you are ever in a position where nginx vs caddy perf matters, then you can afford spinning up another replica


maddsua
HOBBY

a year ago

no but really, a valid point again


maddsua
HOBBY

a year ago

it's a trade of 5% perf vs absolutely mental config schema


maddsua
HOBBY

a year ago

I hated to configure nginx back in the day


maddsua
HOBBY

a year ago

ok it wasn't THE worst one, but not something I want to do for a simple http server or a mux proxy


dillonstreator
HOBBYOP

a year ago

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


brody
EMPLOYEE

a year ago

lets go, we converted another one


brody
EMPLOYEE

a year ago

!s


Status changed to Solved brody about 1 year ago


Loading...