documentation for the HAProxy @ NIRVai
# the prefix to all your container names
## we add this to each cmd automatically where apropriate
SERVICE_PREFIX=nirvai
# where all your .cfg files are kept
## e.g. /usr/local/etc/haproxy/configs
HAPROXY_CONFIG_DIR=./configs
# prefix all cmds with script.haproxy.sh
## validate configuration for running container: nirvai_web_proxy
conf validate core_proxy
## validate then reload configuration for running container: nirvai_web_proxy
conf reload core_proxy
## get server status for running container: nirvai_web_proxy
conf info core_proxy
# consul backend server: hardcoded
# consul: test with `consul members` to get the ip
server consul-hardcoded "192.168.176.2:${VAULT_PORT_CUNT}" check ssl verify none maxconn ${PROXY_MAXCONN_PRIV} weight 100 backup
# consul backend server: with consul-template
# consul-template
{{ range service "core-vault" }}
server {{.Node}} {{.Address}}:{{.Port}} check ssl verify none maxconn ${PROXY_MAXCONN_PRIV} weight 255 {{ end }}