Skip to content
This repository has been archived by the owner on Aug 4, 2018. It is now read-only.

Commit

Permalink
add nginx stub_status for internal network, fall back to localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
ewdurbin committed Nov 28, 2013
1 parent 4b3ebf2 commit a932bad
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,13 @@ http {

include /etc/nginx/conf.d/*.conf;

server {
listen 80 default;
location /nginx_status {
stub_status on;
access_log off;
allow {{ salt['pillar.get']('pypi_internal_network', '127.0.0.1') }};
deny all;
}
}
}
3 changes: 2 additions & 1 deletion provisioning/salt/roots/salt/nginx/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ nginx:

/etc/nginx/nginx.conf:
file.managed:
- source: salt://nginx/config/nginx.conf
- source: salt://nginx/config/nginx.conf.jinja
- template: jinja
- user: root
- group: root
- mode: 644
Expand Down

0 comments on commit a932bad

Please sign in to comment.