Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.

Commit

Permalink
Add nginx_status location accessible only from localhost for monitoring
Browse files Browse the repository at this point in the history
Sam Kottler committed Sep 1, 2014

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent a1dd719 commit 2e663e0
Showing 5 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cookbooks/rubygems-balancer/metadata.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name 'rubygems-balancer'

version '0.0.28'
version '0.0.29'

depends 'chef-vault'
depends 'nginx'
6 changes: 6 additions & 0 deletions cookbooks/rubygems-balancer/templates/default/site.conf.erb
Original file line number Diff line number Diff line change
@@ -44,6 +44,12 @@ server {
proxy_pass http://127.0.0.1:5000/gems/$gem.gem;
}

location /nginx_status {
stub_status on;
allow 127.0.0.1;
deny all;
}

include <%= node['nginx']['dir'] %>/filters.conf;

location ~ /gems/(.*)\.gem$ {
2 changes: 1 addition & 1 deletion environments/common.json
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@
"rubygems-app": "= 0.0.31",
"rubygems-apt": "= 0.0.15",
"rubygems-backups": "= 0.0.18",
"rubygems-balancer": "= 0.0.28",
"rubygems-balancer": "= 0.0.29",
"rubygems-bastion": "= 0.0.10",
"rubygems-cache": "= 0.0.3",
"rubygems-chef": "= 0.0.29",
2 changes: 1 addition & 1 deletion environments/production.json
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@
"rubygems-app": "= 0.0.31",
"rubygems-apt": "= 0.0.15",
"rubygems-backups": "= 0.0.18",
"rubygems-balancer": "= 0.0.28",
"rubygems-balancer": "= 0.0.29",
"rubygems-bastion": "= 0.0.10",
"rubygems-cache": "= 0.0.3",
"rubygems-chef": "= 0.0.29",
2 changes: 1 addition & 1 deletion environments/staging.json
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@
"rubygems-app": "= 0.0.31",
"rubygems-apt": "= 0.0.15",
"rubygems-backups": "= 0.0.18",
"rubygems-balancer": "= 0.0.28",
"rubygems-balancer": "= 0.0.29",
"rubygems-bastion": "= 0.0.10",
"rubygems-cache": "= 0.0.3",
"rubygems-chef": "= 0.0.29",

0 comments on commit 2e663e0

Please sign in to comment.