nginx start and stop logs considered errors

dillonstreatorHOBBY

4 months ago

why are nginx startup and shutdown logs marked as errors?

Solved

0 Replies

4 months ago

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


maddsuaHOBBY

4 months ago

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


dillonstreatorHOBBY

4 months ago

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 🙂


maddsuaHOBBY

4 months ago

actually a valid suggestion lmao


4 months ago

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


dillonstreatorHOBBY

4 months 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


4 months ago

caddy supports environment variables natively in the caddyfile


dillonstreatorHOBBY

4 months ago

nice so probably less of a PITA to setup lol


4 months ago

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


dillonstreatorHOBBY

4 months ago

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


maddsuaHOBBY

4 months ago

sounds like a perfect use case for caddy


4 months ago

when? never really, caddy does it all


maddsuaHOBBY

4 months ago

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


4 months ago

we really shilling caddy hard


maddsuaHOBBY

4 months ago

I just don't like nginx tbh


maddsuaHOBBY

4 months ago

it's mid


4 months ago

same


dillonstreatorHOBBY

4 months ago

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


maddsuaHOBBY

4 months ago

please don't look in the direction of haproxy 💀


4 months ago

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


maddsuaHOBBY

4 months ago

no but really, a valid point again


maddsuaHOBBY

4 months ago

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


maddsuaHOBBY

4 months ago

I hated to configure nginx back in the day


maddsuaHOBBY

4 months ago

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


dillonstreatorHOBBY

4 months 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


4 months ago

lets go, we converted another one


4 months ago

!s


Status changed to Solved brody 4 months ago