From 6c942bc32cc58bb644c79bebcd2b0cf3bf865c04 Mon Sep 17 00:00:00 2001 From: trantzas <ktrantzas@ece.upatras.gr> Date: Tue, 30 Apr 2024 11:36:33 +0000 Subject: [PATCH] fix for #6 --- nginx-custom.conf | 41 +++++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/nginx-custom.conf b/nginx-custom.conf index 7e629ef..0ab3edc 100644 --- a/nginx-custom.conf +++ b/nginx-custom.conf @@ -1,23 +1,24 @@ - # Expires map - map $sent_http_content_type $expires { - default off; - text/html epoch; - text/css max; - application/json max; - application/javascript max; - ~image/ max; - } +# Expires map +map $sent_http_content_type $expires { + default off; + text/html epoch; + text/css max; + application/json max; + application/javascript max; + ~image/ max; +} - server { - listen 80; - include /etc/nginx/mime.types; +server { + listen 80; + include /etc/nginx/mime.types; - server_name {{ .Values.rooturl }}; - location / { - root /usr/share/nginx/html/; - index index.html index.htm; - try_files $uri $uri/ /index.html =404; - } + server_name portal_web; + location / { + root /usr/share/nginx/html/; + index index.html index.htm; + try_files $uri $uri/ /index.html =404; + } - expires $expires; - gzip on; + expires $expires; + gzip on; +} \ No newline at end of file -- GitLab