server { listen ${LISTEN_PORT}; server_name _; # Health check endpoint for container orchestrator probes location = /healthz { access_log off; default_type text/plain; return 200 "OK\n"; } # Redirect all other incoming traffic location / { return ${REDIRECT_CODE} ${REDIRECT_TARGET}; } }