From 838f18395c2b2ee686246ada6d303478af980965 Mon Sep 17 00:00:00 2001 From: Dries De Peuter Date: Mon, 12 Jun 2023 13:45:20 +0200 Subject: [PATCH] feat: Disable access_logs by default --- charts/well-known/templates/configmap.yaml | 4 ++++ charts/well-known/values.yaml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/charts/well-known/templates/configmap.yaml b/charts/well-known/templates/configmap.yaml index fa9651d..dc4f7c4 100644 --- a/charts/well-known/templates/configmap.yaml +++ b/charts/well-known/templates/configmap.yaml @@ -10,6 +10,10 @@ data: server { listen 8080; server_name _; + + {{- if not .Values.webserver.config.accessLogEnabled }} + access_log off; + {{- end }} location /.well-known/ { default_type application/json; diff --git a/charts/well-known/values.yaml b/charts/well-known/values.yaml index 59035e3..9c19fda 100644 --- a/charts/well-known/values.yaml +++ b/charts/well-known/values.yaml @@ -30,6 +30,8 @@ webserver: requests: cpu: 10m memory: 10Mi + config: + accessLogEnabled: false imagePullSecrets: []