summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Porte <microjoe@microjoe.org>2020-02-09 15:36:57 +0100
committerRomain Porte <microjoe@microjoe.org>2020-02-09 15:36:57 +0100
commit7d4cb4e5e64051a85c0e9559714090135f46fa9a (patch)
tree52956ff28dec786b759621fbc202ac4656255ead
parent0a739be696b3d3c3a6560d9287efa3a1c93cf272 (diff)
downloadMicroJoe.nginx-7d4cb4e5e64051a85c0e9559714090135f46fa9a.tar.gz
MicroJoe.nginx-7d4cb4e5e64051a85c0e9559714090135f46fa9a.zip
add localhost nginx_status for munin stats report
-rw-r--r--files/default.j214
1 files changed, 14 insertions, 0 deletions
diff --git a/files/default.j2 b/files/default.j2
index 9219250..b06a155 100644
--- a/files/default.j2
+++ b/files/default.j2
@@ -115,3 +115,17 @@ server {
try_files $uri $uri/ =404;
}
}
+
+# Status server for munin stats
+server {
+ listen 127.0.0.1;
+ listen [::1];
+ server_name localhost;
+ location /nginx_status {
+ stub_status on;
+ access_log off;
+ allow 127.0.0.1;
+ allow ::1;
+ deny all;
+ }
+}