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

This commit is contained in:
holzi1005 2025-08-06 12:48:07 +02:00
parent f0b618c712
commit be43cb93b4

View file

@ -15,16 +15,20 @@ export HAPROXY_TEMPLATE="./haproxy.tmpl"
{{- range .backends }}
backend {{ .Name }}
mode tcp
balance leastconn
cookie {{ .Name }} insert indirect nocache
mode {{ .Mode }}
balance {{ .Balance }}
{{- if .CookieName }}
cookie {{ .CookieName }} {{ .CookieFlags }}
{{- end }}
{{- range .Servers }}
server {{ .Name }} {{ .Address }}:{{ .Port }} check cookie {{ .Cookie }}
server {{ .Name }} {{ .Address }}:{{ .Port }}{{ if $.HealthCheck }} check{{ end }}{{ if $.CookieName }} cookie {{ .Cookie }}{{ end }} {{ $.ServerOptions }}
{{- end }}
{{- end }}
{{- end }}
```