summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoff Cox <redgeoff@gmail.com>2017-12-15 12:54:40 -0800
committerAdam Kocoloski <adam@kocolosk.net>2017-12-15 15:54:40 -0500
commit8e0e8b3dda1b152589bd5b8909d3489d3b733b02 (patch)
tree5aa3f9bac28ca1de814bef51a0a03ec079b34092
parentbeb87817f7dfaeb9ce2763147ddde9d6d29ffc6e (diff)
downloadcouchdb-8e0e8b3dda1b152589bd5b8909d3489d3b733b02.tar.gz
Fix haproxy stats (#1039)
- `stats scope .` ends up blocking all backends - Renaming endpoint from `_stats` to `_haproxy_stats` so that it doesn't collide with CouchDB's `_stats` endpoint - Added a commented out stats auth line so that you can easily password protect
-rw-r--r--rel/haproxy.cfg4
1 files changed, 2 insertions, 2 deletions
diff --git a/rel/haproxy.cfg b/rel/haproxy.cfg
index 73ec987f4..45affaffe 100644
--- a/rel/haproxy.cfg
+++ b/rel/haproxy.cfg
@@ -30,8 +30,8 @@ defaults
timeout connect 500
stats enable
- stats scope .
- stats uri /_stats
+ stats uri /_haproxy_stats
+ # stats auth admin:admin # Uncomment for basic auth
frontend http-in
# This requires HAProxy 1.5.x