Skip to content

Commit 3dacce7

Browse files
author
Bennett Goble
committed
Add nginx status site
Enable an nginx status page accessible only to local requests for use by datadog and other MMA systems.
1 parent 58a19f6 commit 3dacce7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/etc/nginx/conf.d/status.conf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# NGINX status/stats used by datadog, et al.
2+
server {
3+
listen 81;
4+
server_name localhost;
5+
6+
access_log off;
7+
allow 127.0.0.1;
8+
deny all;
9+
10+
location /nginx_status {
11+
stub_status;
12+
# ensures the version information can be retrieved
13+
server_tokens on;
14+
}
15+
}

0 commit comments

Comments
 (0)