diff --git a/CHANGELOG.md b/CHANGELOG.md index 584f153..417cb65 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 6.4.13 2024-05-23 + + ### Changed + - Force Nginx version to be output when monitoring active to solve Zabbix version issues + + ## 6.4.12 2024-04-24 ### Added diff --git a/install/assets/functions/10-nginx b/install/assets/functions/10-nginx index 11f005a..d6bfd92 100755 --- a/install/assets/functions/10-nginx +++ b/install/assets/functions/10-nginx @@ -500,6 +500,7 @@ nginx_configure_server() { if var_false "${ENABLE_ZABBIX}" || var_false "${CONTAINER_ENABLE_MONITORING}" ; then sed -i "\|include /etc/nginx/snippets/monitoring.conf;|d" /etc/nginx/nginx.conf + update_template /etc/nginx/snippets/monitoring.conf NGINX_VERSION fi case "${STAGE,,}" in diff --git a/install/etc/nginx/snippets/monitoring.conf b/install/etc/nginx/snippets/monitoring.conf index b3aa300..a06af81 100644 --- a/install/etc/nginx/snippets/monitoring.conf +++ b/install/etc/nginx/snippets/monitoring.conf @@ -5,6 +5,7 @@ location /stub_status { stub_status on; access_log off; + more_set_headers "Server: nginx/{{NGINX_VERSION}}"; allow 127.0.0.1; deny all; }