From e169a3744af3f34d20754b5180160d37ae8f676b Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Tue, 10 Mar 2020 12:23:12 +0200 Subject: [PATCH] roles/nginx: Fix munin.conf for nginx_status This config stopped working a few years ago probably when hosts started getting IPv6 and we need to allow ::1. Make sure we're only listening on local loopback interfaces also. --- roles/nginx/files/munin.conf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/roles/nginx/files/munin.conf b/roles/nginx/files/munin.conf index bcba2a3..8466092 100644 --- a/roles/nginx/files/munin.conf +++ b/roles/nginx/files/munin.conf @@ -1,6 +1,8 @@ # nginx status module + munin aliases server { - listen localhost:80; + listen 127.0.0.1:80; + listen [::]:80; + server_name localhost; log_not_found off; @@ -8,6 +10,7 @@ server { stub_status on; access_log off; allow 127.0.0.1; + allow ::1; deny all; } @@ -18,7 +21,6 @@ server { location /munin/ { alias /var/cache/munin/www/; - index index.html expires modified +310s; } }