diff options
author | 2024-08-28 05:32:34 +0100 | |
---|---|---|
committer | 2024-08-28 17:50:41 +0100 | |
commit | 6779cd1f11cbb56c821285cb68923c039a1098f2 (patch) | |
tree | 9dcd231bad87d69026c9dd29c4cc3500e83b76b1 | |
parent | Add munin NGINX configuration (diff) |
Add nginx status stub listener
-rw-r--r-- | ansible/host_vars/lovelace/nginx.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ansible/host_vars/lovelace/nginx.yml b/ansible/host_vars/lovelace/nginx.yml index aa67907..c229214 100644 --- a/ansible/host_vars/lovelace/nginx.yml +++ b/ansible/host_vars/lovelace/nginx.yml @@ -1,6 +1,20 @@ nginx_default_cert_name: lovelace.box.pydis.wtf nginx_configs: + stats-stub.conf: | + 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; + } + } prometheus.lovelace.box.wtf.conf: | server { listen 443; |