diff --git a/README.md b/README.md index 7581885..2219d13 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ This repo is meant to be an example of how to easily set up an arbitrary-sized c * TODO: explain personal/secret info needed for setup * TODO: explain `terraform`, `awscli`, and `jq` prerequisites * TODO: explain what `run.sh` does -* TODO: explain load-balanced endpoints, and /haproxy?stats +* TODO: explain load-balanced endpoints, and /stats * TODO: explain SSHing into haproxy instance in order to manually run the following: ``` diff --git a/tf-remote-haproxy-script.sh b/tf-remote-haproxy-script.sh index 1508dd2..9f11f82 100644 --- a/tf-remote-haproxy-script.sh +++ b/tf-remote-haproxy-script.sh @@ -59,9 +59,13 @@ defaults #--------------------------------------------------------------------- frontend http_front bind *:80 - stats uri /haproxy?stats + stats uri /stats default_backend http_back + # !!!: normally you would not want to expose this, only for demo + # this allows anyone to easily take backends down/up/etc via panel + stats admin if TRUE + #--------------------------------------------------------------------- # round robin balancing between the various backends #---------------------------------------------------------------------