From 0c237cdff2aa5409c73afdb90ce07ed7d15669cd Mon Sep 17 00:00:00 2001 From: Dimitrios Giannopoulos Date: Mon, 29 Apr 2024 13:07:26 +0000 Subject: [PATCH 1/2] feat: added latest nginx conf --- nginx-custom.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nginx-custom.conf b/nginx-custom.conf index 3cd4dbf..83307e4 100644 --- a/nginx-custom.conf +++ b/nginx-custom.conf @@ -13,11 +13,11 @@ listen 80; include /etc/nginx/mime.types; - server_name localhost; - location ^~/services/ { - root /usr/share/nginx/html; + server_name {{ .Values.rooturl }}; + location / { + root /usr/share/nginx/html/services; index index.html index.htm; - try_files $uri $uri/ /services/index.html =404; + try_files $uri $uri/ /index.html =404; } expires $expires; -- GitLab From 0852a029fa130121b918ca82c5d90e218157bb4c Mon Sep 17 00:00:00 2001 From: Dimitrios Giannopoulos Date: Tue, 30 Apr 2024 11:30:25 +0000 Subject: [PATCH 2/2] feat: added static server_name --- nginx-custom.conf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nginx-custom.conf b/nginx-custom.conf index 83307e4..74101ac 100644 --- a/nginx-custom.conf +++ b/nginx-custom.conf @@ -1,4 +1,3 @@ - # Expires map map $sent_http_content_type $expires { default off; @@ -13,7 +12,7 @@ listen 80; include /etc/nginx/mime.types; - server_name {{ .Values.rooturl }}; + server_name tmf_web; location / { root /usr/share/nginx/html/services; index index.html index.htm; -- GitLab