Switch back to the upstream nginx cookbook
chef_nginx is deprecated
This commit is contained in:
18
cookbooks/nginx/templates/default/modules/nginx_status.erb
Normal file
18
cookbooks/nginx/templates/default/modules/nginx_status.erb
Normal file
@@ -0,0 +1,18 @@
|
||||
include authorized_ip;
|
||||
|
||||
server {
|
||||
listen <%= node['nginx']['status']['port'] %>;
|
||||
server_name _;
|
||||
|
||||
location /nginx_status {
|
||||
if ($authorized_ip = no) {
|
||||
return 404;
|
||||
}
|
||||
stub_status on;
|
||||
access_log off;
|
||||
}
|
||||
|
||||
location / {
|
||||
return 404;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user