Update README_GO.md
All checks were successful
Build Go Binary / build (push) Successful in 31s

This commit is contained in:
holzi1005 2025-06-29 07:42:26 +02:00
parent c88d0e2739
commit 4c65ddfb9e

View file

@ -8,3 +8,21 @@ export HAPROXY_TEMPLATE="./haproxy.tmpl"
./haproxy-generator > /etc/haproxy/haproxy.cfg && sudo systemctl restart haproxy ./haproxy-generator > /etc/haproxy/haproxy.cfg && sudo systemctl restart haproxy
``` ```
# HaProxy Template
```
{{- range .backends }}
backend {{ .Name }}
mode tcp
balance leastconn
cookie {{ .Name }} insert indirect nocache
{{- range .Servers }}
server {{ .Name }} {{ .Address }}:{{ .Port }} check cookie {{ .Cookie }}
{{- end }}
{{- end }}
```