Skip to content

Commit

Permalink
Don't log Zabbix monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
wkmor1 committed Sep 5, 2024
1 parent e841f09 commit e4d9249
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ map $http_upgrade $connection_upgrade {
'' close;
}

map $http_user_agent $log_ua {
~Zabbix 0;
default 1;
}

server {
listen ${PROXY_PORT} ssl;

Expand All @@ -14,6 +19,8 @@ server {
ssl_certificate /etc/ssl/tls.crt;
ssl_certificate_key /etc/ssl/tls.key;

access_log /var/log/nginx/access.log main if=$log_ua;

location / {

proxy_set_header Host $host;
Expand Down

0 comments on commit e4d9249

Please sign in to comment.