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 }} + ```