fix: frontend nginx restart loop from invalid log_format scope (#350)

* fix: place nginx log_format in valid context

* fix: unblock required checks for nginx hotfix

* fix: restore mandatory doku files in nginx hotfix pr
This commit is contained in:
Daniel Volz
2026-02-27 01:47:59 +01:00
committed by GitHub
parent 8e4cb5dcd4
commit b009d9e158
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ function buildLoggerOptions(level: string) {
level,
timestamp: () => `,"time":"${new Date().toISOString()}"`,
};
// Human readable logs in development, structured JSON in production/test
// Human-readable logs in development, structured JSON in production/test
if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test") {
return {
...base,
+3 -3
View File
@@ -1,3 +1,6 @@
# Must be defined at http-level (outside server block)
log_format timed '$time_iso8601 $status $request_method $request_uri ($request_time s)';
server {
# Port 8080 for unprivileged nginx (non-root)
listen 8080;
@@ -6,9 +9,6 @@ server {
root /usr/share/nginx/html;
index index.html;
# Custom log format with ISO timestamps
log_format timed '$time_iso8601 $status $request_method $request_uri ($request_time s)';
# Access log control (suppressed when LOG_LEVEL is warn or higher)
access_log ${NGINX_ACCESS_LOG};
+1 -1
View File
@@ -433,7 +433,7 @@ export function LoginForm({
</div>
)}
{/* Local login form: only show if form login is enabled */}
{/* Local login form - only show if form login is enabled */}
{authState?.formLoginEnabled && (
<form onSubmit={handleSubmit} className="auth-form">
{error && <div className="auth-error">{error}</div>}