diff --git a/nginx-custom.conf b/nginx-custom.conf index 7e629efee612c20d15c51bdbda25d001680c09c2..0ab3edc627fdc9330cbbc39a1c92b61c9f4630b1 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