nginx start and stop logs considered errors
dillonstreator
HOBBYOP

2 years ago

why are nginx startup and shutdown logs marked as errors?

Solved

28 Replies

2 years ago

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


maddsua
HOBBY

2 years ago

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


dillonstreator
HOBBYOP

2 years ago

gotcha that makes sense

can take a look to see if anything I can do to make them not sent to stderr


2 years ago

use caddy 🙂


maddsua
HOBBY

2 years ago

actually a valid suggestion lmao


2 years ago

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


dillonstreator
HOBBYOP

2 years 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


2 years ago

caddy supports environment variables natively in the caddyfile


dillonstreator
HOBBYOP

2 years ago

nice so probably less of a PITA to setup lol


2 years ago

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


dillonstreator
HOBBYOP

2 years ago

just a static site with header configuration and log stripping

curious when you'd recommend nginx over caddy 🤔


maddsua
HOBBY

2 years ago

sounds like a perfect use case for caddy


2 years ago

when? never really, caddy does it all


maddsua
HOBBY

2 years ago

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


2 years ago

we really shilling caddy hard


maddsua
HOBBY

2 years ago

I just don't like nginx tbh


maddsua
HOBBY

2 years ago

it's mid


2 years ago

same


dillonstreator
HOBBYOP

2 years ago

already switching over haha

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


maddsua
HOBBY

2 years ago

please don't look in the direction of haproxy 💀


2 years ago

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


maddsua
HOBBY

2 years ago

no but really, a valid point again


maddsua
HOBBY

2 years ago

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


maddsua
HOBBY

2 years ago

I hated to configure nginx back in the day


maddsua
HOBBY

2 years 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

2 years 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


2 years ago

lets go, we converted another one


2 years ago

!s


Status changed to Solved brody over 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...