diff --git a/sechub-web-ui-solution/docker/nginx.conf b/sechub-web-ui-solution/docker/nginx.conf index 1a471fcaf..184fa146d 100644 --- a/sechub-web-ui-solution/docker/nginx.conf +++ b/sechub-web-ui-solution/docker/nginx.conf @@ -7,7 +7,6 @@ events { } http { - access_log /dev/stdout; error_log /dev/stderr; sendfile on; @@ -21,8 +20,14 @@ http { server_name _; root /var/www/html; + location / { - index index.html index.htm; + index index.html; + } + + location /health { + # no access logging of health checks + access_log off; } ssl_certificate /etc/nginx/certificates/sechub-web-ui.cert; @@ -40,11 +45,10 @@ http { resolver 127.0.0.11 valid=5s; } - include /etc/nginx/mime.types; - default_type application/octet-stream; - - log_format main '$remote_addr - $remote_user [$time_local] "$request" ' - '$status $body_bytes_sent "$http_referer" ' - '"$http_user_agent" "$http_x_forwarded_for"'; + include /etc/nginx/mime.types; + default_type application/octet-stream; -} \ No newline at end of file + log_format main '$remote_addr - $remote_user [$time_local] "$request" ' + '$status $body_bytes_sent "$http_referer" ' + '"$http_user_agent" "$http_x_forwarded_for"'; +}