feature(NGINX): add health stub site

This commit is contained in:
Asif Bacchus 2021-01-05 17:18:24 -07:00
parent 0fdab25788
commit 7cf92e7b2c
2 changed files with 21 additions and 2 deletions

16
build/config/health.conf Normal file
View File

@ -0,0 +1,16 @@
#
# nginx health stub-site
#
server {
listen 80 default_server;
server_name _;
location /nginx_status {
stub_status;
# only permit local connections
allow 127.0.0.1;
deny all;
}
}

View File

@ -14,7 +14,7 @@ include /etc/nginx/modules/*.conf;
events {
worker_connections 512;
multi_accept off;
use epoll;
use epoll;
}
http {
@ -47,6 +47,9 @@ http {
include /etc/nginx/ssl-config/*.conf;
include /etc/nginx/config/*.conf;
# include health status stub-site
include /etc/nginx/health.conf;
# include enabled server blocks from sites/*.conf
include /etc/nginx/sites/*.conf;
}
}