An open API service indexing awesome lists of open source software.

https://github.com/render-examples/haproxy-example


https://github.com/render-examples/haproxy-example

Last synced: 5 months ago
JSON representation

Awesome Lists containing this project

README

          

# haproxy
Manually create `haproxy.cfg` from the template
```bash
cat haproxy.cfg.template | \
BACKEND_SLUG= \
BACKEND_PORT= \
BACKEND_HEALTHCHECK_URI= \
BACKEND_MIN_INSTANCES= \
BACKEND_MAX_INSTANCES= \
LOCAL_DOMAIN= envsubst > haproxy.cfg
```
Example:
```bash
cat haproxy.cfg.template | \
BACKEND_SLUG=backend-kuip \
BACKEND_PORT=10000 \
BACKEND_HEALTHCHECK_URI=/check \
BACKEND_MIN_INSTANCES=1 \
BACKEND_MAX_INSTANCES=5 \
LOCAL_DOMAIN=usr-bupfjt793em8dprtcjn0.svc.cluster.local envsubst > haproxy.cfg.example
```