From be43cb93b4ae12c7e7fa2a4f2c851a49400d27fb Mon Sep 17 00:00:00 2001 From: holzi1005 Date: Wed, 6 Aug 2025 12:48:07 +0200 Subject: [PATCH] Update README_GO.md --- README_GO.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README_GO.md b/README_GO.md index b9a5666..b37bbe9 100644 --- a/README_GO.md +++ b/README_GO.md @@ -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 }} + ```