Skip to content

Commit

Permalink
Create nixstats_stub-status.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisgoddard authored Apr 2, 2020
1 parent 2a01e59 commit 91abcd9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions nginx-config/conf.d/nixstats_stub-status.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# This file creates a stub_status page for Nginx reachable (internal only) at http://127.0.0.1:8080/status_page

# This file is compatible with NixStats (URL change in config required)
# https://help.nixstats.com/en/article/monitoring-nginx-50nu7f/

server {
listen 127.0.0.1:8080;
server_name localhost;
location /status_page {
stub_status on;
allow 127.0.0.1;
deny all;
}
}

0 comments on commit 91abcd9

Please sign in to comment.