Skip to content

Commit

Permalink
no logging of health checks #3581
Browse files Browse the repository at this point in the history
  • Loading branch information
sven-dmlr committed Nov 5, 2024
1 parent 89350d7 commit 8e99840
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions sechub-web-ui-solution/docker/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ events {
}

http {

access_log /dev/stdout;
error_log /dev/stderr;
sendfile on;
Expand All @@ -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;
Expand All @@ -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;

}
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
}

0 comments on commit 8e99840

Please sign in to comment.