Skip to content

Enable authentication for haproxy stats page

technicalpickles edited this page May 3, 2012 · 1 revision

By default, http://yourdomain.com/haproxy?stats is publically accessible. moonshine_haproxy can be updated to require username/password authentication though.

To apply to everywhere using YAML:

# config/moonshine.yml:
:haproxy:
  :stats_auth: username:password

To apply to a specific stage using YAML:

# config/moonshine/production.yml
:haproxy:
  :stats_auth: username:password

To apply using YAML:

# app/manifests/web_manifest.rb:

configure :haproxy => {:stats_auth => 'username:password'}
Clone this wiki locally