a89aa40dda
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
11 lines
342 B
Go
11 lines
342 B
Go
package proxy
|
|
|
|
const configTemplate = ` # element router configuration
|
|
{{ range $frontend := .Frontends }}
|
|
# {{ $frontend.Name }}
|
|
{{ range $host := $frontend.Hosts }}{{ $host }} {
|
|
proxy {{ $frontend.Backend.Path }}{{ range $upstream := $frontend.Backend.Upstreams }} {{ $upstream }} {{ end }} {
|
|
transparent
|
|
}
|
|
} {{ end }} {{ end }}
|
|
`
|