feature(NGINX): add health stub site
This commit is contained in:
parent
0fdab25788
commit
7cf92e7b2c
16
build/config/health.conf
Normal file
16
build/config/health.conf
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
@ -14,7 +14,7 @@ include /etc/nginx/modules/*.conf;
|
|||||||
events {
|
events {
|
||||||
worker_connections 512;
|
worker_connections 512;
|
||||||
multi_accept off;
|
multi_accept off;
|
||||||
use epoll;
|
use epoll;
|
||||||
}
|
}
|
||||||
|
|
||||||
http {
|
http {
|
||||||
@ -47,6 +47,9 @@ http {
|
|||||||
include /etc/nginx/ssl-config/*.conf;
|
include /etc/nginx/ssl-config/*.conf;
|
||||||
include /etc/nginx/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 enabled server blocks from sites/*.conf
|
||||||
include /etc/nginx/sites/*.conf;
|
include /etc/nginx/sites/*.conf;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user