From a76d958208a42877bda90df298f3eaefffba7d79 Mon Sep 17 00:00:00 2001 From: Taha Yassine Kraiem Date: Mon, 25 Oct 2021 14:57:51 +0200 Subject: [PATCH] feat(api): count recorded sessions endpoint feat(nginx): block public access to count recorded sessions endpoint --- .../nginx-ingress/nginx-ingress/templates/configmap.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/helm/nginx-ingress/nginx-ingress/templates/configmap.yaml b/scripts/helm/nginx-ingress/nginx-ingress/templates/configmap.yaml index 84cc6337d..47d5e6751 100644 --- a/scripts/helm/nginx-ingress/nginx-ingress/templates/configmap.yaml +++ b/scripts/helm/nginx-ingress/nginx-ingress/templates/configmap.yaml @@ -2,7 +2,7 @@ apiVersion: v1 kind: ConfigMap metadata: name: nginx - namespace: {{ .Release.Namespace }} + namespace: { { .Release.Namespace } } data: location.list: |- location /healthz { @@ -85,6 +85,9 @@ data: proxy_intercept_errors on; # see http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_intercept_errors error_page 404 =200 /index.html; } + location ~*/general_stats { + deny all; + } compression.conf: |- # Compression gzip on;