From 1c7daa2197fc1d4b5027e8daa1f982d9cb32fe72 Mon Sep 17 00:00:00 2001 From: Richard Treier Date: Thu, 12 Oct 2023 13:08:58 +0200 Subject: [PATCH] chore: optionally disable access and error logs --- CHANGELOG.md | 3 +++ docker/Dockerfile | 2 ++ docker/default.conf.template | 4 ++-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ceabecfa..35bab3190 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -73,6 +73,9 @@ EDC 0 compatible version (Connector UI only). - `EDC_UI_MAINTAINER_URL` - `EDC_UI_ASSET_PROP_ORIGINATOR_ORGANIZATION` - `EDC_UI_ASSET_PROP_ORIGINATOR` +- New **optional** ENV Vars: + - `NGINX_ACCESS_LOG`, default: `/dev/stdout` + - `NGINX_ERROR_LOG`, default: `/dev/stderr` ## [v0.0.1-milestone-8-sovity12] 12.07.2023 diff --git a/docker/Dockerfile b/docker/Dockerfile index 9aaebbe91..affd0ca82 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -37,6 +37,8 @@ USER nginx:nginx ENV NGINX_BIND="0.0.0.0" ENV NGINX_PORT=8080 +ENV NGINX_ACCESS_LOG=/dev/stdout +ENV NGINX_ERROR_LOG=/dev/stderr HEALTHCHECK --interval=2s --timeout=5s --retries=10 \ CMD curl -f http://$NGINX_BIND:$NGINX_PORT/ || exit 1 diff --git a/docker/default.conf.template b/docker/default.conf.template index a1bb7119b..3858541c5 100644 --- a/docker/default.conf.template +++ b/docker/default.conf.template @@ -1,5 +1,5 @@ -access_log /dev/stdout; -error_log /dev/stderr; +access_log ${NGINX_ACCESS_LOG}; +error_log ${NGINX_ERROR_LOG}; disable_symlinks if_not_owner; server {