Skip to content

Commit

Permalink
Exposing haproxy admin to public for demo, and made stats uri easier
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulCapestany committed Mar 27, 2016
1 parent e2f44fd commit 8223d8b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

```
Expand Down
6 changes: 5 additions & 1 deletion tf-remote-haproxy-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
#---------------------------------------------------------------------
Expand Down

0 comments on commit 8223d8b

Please sign in to comment.