From 2776bfa311d6b8ff04e2076864e451b991cfc8c3 Mon Sep 17 00:00:00 2001 From: Ankit Anand Date: Tue, 1 Jun 2021 16:45:45 +0530 Subject: [PATCH] added nginx config for gzip --- deploy/docker/nginx-config.conf | 10 ++++++++++ .../signoz-charts/frontend/templates/config.yaml | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/deploy/docker/nginx-config.conf b/deploy/docker/nginx-config.conf index fa936b0732e4..881cdc77cbb8 100644 --- a/deploy/docker/nginx-config.conf +++ b/deploy/docker/nginx-config.conf @@ -1,6 +1,16 @@ server { listen 3000; server_name _; + + gzip on; + gzip_static on; + gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; + gzip_proxied any; + gzip_vary on; + gzip_comp_level 6; + gzip_buffers 16 8k; + gzip_http_version 1.1; + location / { root /usr/share/nginx/html; index index.html index.htm; diff --git a/deploy/kubernetes/platform/signoz-charts/frontend/templates/config.yaml b/deploy/kubernetes/platform/signoz-charts/frontend/templates/config.yaml index db54d18daced..aebe4b2216a3 100644 --- a/deploy/kubernetes/platform/signoz-charts/frontend/templates/config.yaml +++ b/deploy/kubernetes/platform/signoz-charts/frontend/templates/config.yaml @@ -9,6 +9,16 @@ data: server { listen {{ .Values.service.port }}; server_name _; + + gzip on; + gzip_static on; + gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; + gzip_proxied any; + gzip_vary on; + gzip_comp_level 6; + gzip_buffers 16 8k; + gzip_http_version 1.1; + location / { root /usr/share/nginx/html; index index.html index.htm;