diff --git a/backend/src/index.ts b/backend/src/index.ts index 38dd3d7..b3f4dd9 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -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, diff --git a/frontend/nginx.conf b/frontend/nginx.conf index 57f74f9..4d0e9e3 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -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}; diff --git a/frontend/src/components/Auth.tsx b/frontend/src/components/Auth.tsx index d0cd2a3..62153d0 100644 --- a/frontend/src/components/Auth.tsx +++ b/frontend/src/components/Auth.tsx @@ -433,7 +433,7 @@ export function LoginForm({ )} - {/* Local login form: only show if form login is enabled */} + {/* Local login form - only show if form login is enabled */} {authState?.formLoginEnabled && (