From bd5d9f2903b09a6fadbcef99e75d839125bc03f5 Mon Sep 17 00:00:00 2001 From: Timo Bejan Date: Mon, 1 Nov 2021 13:38:44 +0100 Subject: [PATCH] nginx.conf edited online with Bitbucket --- docker/common/nginx/nginx.conf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docker/common/nginx/nginx.conf b/docker/common/nginx/nginx.conf index 8673be753..e8e4015e6 100644 --- a/docker/common/nginx/nginx.conf +++ b/docker/common/nginx/nginx.conf @@ -3,7 +3,8 @@ server { listen 8080; proxy_hide_header WWW-Authenticate; port_in_redirect off; - + server_tokens off; + root /usr/share/nginx/html; # SSL stuff for cloudflare proxy-ing - ignores SSL certificate and uses SNI proxy_ssl_verify off; @@ -15,9 +16,8 @@ server { } location /ui/ { - alias /usr/share/nginx/html/ui/; proxy_hide_header WWW-Authenticate; - try_files $uri$args $uri$args/ $uri $uri/ /index.html =404; + try_files $uri$args $uri$args/ $uri $uri/ /ui/index.html =404; } client_max_body_size 0; @@ -31,3 +31,4 @@ server { gzip_types application/javascript text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; } +