From 1e7edda6f263efb965fcf9cb890d07ea81b4b210 Mon Sep 17 00:00:00 2001 From: nobswebdev Date: Wed, 25 Nov 2026 20:42:19 +0000 Subject: [PATCH] Disable nginx access and error request logs. Request lines were keeping client addresses and paths for as long as the container existed. --- nginx/Dockerfile.prod | 1 + nginx/logging.conf | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 nginx/logging.conf diff --git a/nginx/Dockerfile.prod b/nginx/Dockerfile.prod index 258d4f6..6807142 100644 --- a/nginx/Dockerfile.prod +++ b/nginx/Dockerfile.prod @@ -63,6 +63,7 @@ RUN apk add --no-cache gettext COPY --from=cms-builder /cms/dist /usr/share/nginx/html/cms +COPY nginx/logging.conf /etc/nginx/conf.d/logging.conf COPY nginx/conf.d/ /etc/nginx/templates/conf.d/ COPY nginx/snippets/ /etc/nginx/templates/snippets/ COPY nginx/docker-entrypoint.sh /docker-entrypoint.sh diff --git a/nginx/logging.conf b/nginx/logging.conf new file mode 100644 index 0000000..09295a7 --- /dev/null +++ b/nginx/logging.conf @@ -0,0 +1,2 @@ +access_log off; +error_log /dev/null;