From 10bace6c1e15c031d2e47b8ed4f202cb542bb0ee Mon Sep 17 00:00:00 2001 From: Roman Khabarov Date: Thu, 30 May 2024 00:12:12 +0200 Subject: [PATCH] chore(fix): deploy nginx config --- .helm/templates/Deployment.yaml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.helm/templates/Deployment.yaml b/.helm/templates/Deployment.yaml index ffda197..e39434c 100755 --- a/.helm/templates/Deployment.yaml +++ b/.helm/templates/Deployment.yaml @@ -33,13 +33,23 @@ data: '"http_user_agent": "$http_user_agent"}'; server { listen 80; - charset utf-8; - root /usr/share/nginx/html; - index index.html; - access_log /dev/stdout combined_plus; + location / { - try_files $uri $uri/ /index.html; + root /usr/share/nginx/html; + #index index.html; + try_files $uri /index.html; + gzip_static on; } + + error_page 500 502 503 504 /50x.html; + gzip on; + gzip_http_version 1.1; + gzip_disable "msie6"; + gzip_min_length 1100; + gzip_vary on; + gzip_proxied expired no-cache no-store private auth; + gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript; + gzip_comp_level 9; } } ---