This commit is contained in:
parent
923261a527
commit
c42d85a1d5
1 changed files with 3 additions and 1 deletions
|
@ -12,6 +12,8 @@ export HAPROXY_TEMPLATE="./haproxy.tmpl"
|
|||
# HaProxy Template
|
||||
|
||||
```
|
||||
{{- range .backends }}
|
||||
|
||||
backend {{ .Name }}
|
||||
mode {{ .Mode }}
|
||||
balance {{ .Balance }}
|
||||
|
@ -29,7 +31,7 @@ backend {{ .Name }}
|
|||
server {{ .Name }} {{ .Address }}:{{ .Port }}{{ if $backend.HealthCheck }} check{{ end }}{{ if $backend.CookieName }} cookie {{ .Cookie }}{{ end }}{{ if $backend.ServerOptions }} {{ $backend.ServerOptions }}{{ end }}
|
||||
{{- end }}
|
||||
|
||||
|
||||
{{- end }}
|
||||
```
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue