Update README_GO.md
Some checks failed
Build Go Binary / build (push) Failing after 27s

This commit is contained in:
holzi1005 2025-08-06 17:30:19 +02:00
parent d010200de7
commit f797d909cf

View file

@ -12,8 +12,6 @@ export HAPROXY_TEMPLATE="./haproxy.tmpl"
# HaProxy Template
```
{{- range .backends }}
backend {{ .Name }}
mode {{ .Mode }}
balance {{ .Balance }}
@ -21,12 +19,16 @@ backend {{ .Name }}
cookie {{ .CookieName }} {{ .CookieFlags }}
{{- end }}
{{- if .HealthCheck }}
option httpchk GET {{ .HealthCheck }}
http-check expect status 200
{{- end }}
{{- $backend := . }}
{{- range .Servers }}
server {{ .Name }} {{ .Address }}:{{ .Port }}{{ if $backend.HealthCheck }} check{{ end }}{{ if $backend.CookieName }} cookie {{ .Cookie }}{{ end }}{{ if $backend.ServerOptions }} {{ $backend.ServerOptions }}{{ end }}
{{- end }}
{{- end }}
```