Add some missing quotes in templates
This commit is contained in:
parent
3a2b421566
commit
b001b0da86
10 changed files with 88 additions and 88 deletions
|
@ -84,7 +84,7 @@ var _templatesConsul_catalogTmpl = []byte(`[backends]
|
||||||
|
|
||||||
{{ $healthCheck := getHealthCheck $service.Attributes }}
|
{{ $healthCheck := getHealthCheck $service.Attributes }}
|
||||||
{{if $healthCheck }}
|
{{if $healthCheck }}
|
||||||
[backends.backend-{{ $backendName }}.healthCheck]
|
[backends."backend-{{ $backendName }}".healthCheck]
|
||||||
path = "{{ $healthCheck.Path }}"
|
path = "{{ $healthCheck.Path }}"
|
||||||
port = {{ $healthCheck.Port }}
|
port = {{ $healthCheck.Port }}
|
||||||
interval = "{{ $healthCheck.Interval }}"
|
interval = "{{ $healthCheck.Interval }}"
|
||||||
|
@ -92,7 +92,7 @@ var _templatesConsul_catalogTmpl = []byte(`[backends]
|
||||||
|
|
||||||
{{ $buffering := getBuffering $service.Attributes }}
|
{{ $buffering := getBuffering $service.Attributes }}
|
||||||
{{if $buffering }}
|
{{if $buffering }}
|
||||||
[backends.backend-{{ $backendName }}.buffering]
|
[backends."backend-{{ $backendName }}".buffering]
|
||||||
maxRequestBodyBytes = {{ $buffering.MaxRequestBodyBytes }}
|
maxRequestBodyBytes = {{ $buffering.MaxRequestBodyBytes }}
|
||||||
memRequestBodyBytes = {{ $buffering.MemRequestBodyBytes }}
|
memRequestBodyBytes = {{ $buffering.MemRequestBodyBytes }}
|
||||||
maxResponseBodyBytes = {{ $buffering.MaxResponseBodyBytes }}
|
maxResponseBodyBytes = {{ $buffering.MaxResponseBodyBytes }}
|
||||||
|
@ -145,7 +145,7 @@ var _templatesConsul_catalogTmpl = []byte(`[backends]
|
||||||
{{if hasErrorPages $service.Attributes }}
|
{{if hasErrorPages $service.Attributes }}
|
||||||
[frontends."frontend-{{ $service.ServiceName }}".errors]
|
[frontends."frontend-{{ $service.ServiceName }}".errors]
|
||||||
{{range $pageName, $page := getErrorPages $service.Attributes }}
|
{{range $pageName, $page := getErrorPages $service.Attributes }}
|
||||||
[frontends."frontend-{{ $service.ServiceName }}".errors.{{ $pageName }}]
|
[frontends."frontend-{{ $service.ServiceName }}".errors."{{ $pageName }}"]
|
||||||
status = [{{range $page.Status }}
|
status = [{{range $page.Status }}
|
||||||
"{{.}}",
|
"{{.}}",
|
||||||
{{end}}]
|
{{end}}]
|
||||||
|
@ -161,7 +161,7 @@ var _templatesConsul_catalogTmpl = []byte(`[backends]
|
||||||
|
|
||||||
[frontends."frontend-{{ $service.ServiceName }}".rateLimit.rateSet]
|
[frontends."frontend-{{ $service.ServiceName }}".rateLimit.rateSet]
|
||||||
{{range $limitName, $limit := $rateLimit.RateSet }}
|
{{range $limitName, $limit := $rateLimit.RateSet }}
|
||||||
[frontends."frontend-{{ $service.ServiceName }}".rateLimit.rateSet.{{ $limitName }}]
|
[frontends."frontend-{{ $service.ServiceName }}".rateLimit.rateSet."{{ $limitName }}"]
|
||||||
period = "{{ $limit.Period }}"
|
period = "{{ $limit.Period }}"
|
||||||
average = {{ $limit.Average }}
|
average = {{ $limit.Average }}
|
||||||
burst = {{ $limit.Burst }}
|
burst = {{ $limit.Burst }}
|
||||||
|
@ -274,7 +274,7 @@ var _templatesDockerTmpl = []byte(`{{$backendServers := .Servers}}
|
||||||
|
|
||||||
{{ $healthCheck := getHealthCheck $backend }}
|
{{ $healthCheck := getHealthCheck $backend }}
|
||||||
{{if $healthCheck }}
|
{{if $healthCheck }}
|
||||||
[backends.backend-{{ $backendName }}.healthCheck]
|
[backends."backend-{{ $backendName }}".healthCheck]
|
||||||
path = "{{ $healthCheck.Path }}"
|
path = "{{ $healthCheck.Path }}"
|
||||||
port = {{ $healthCheck.Port }}
|
port = {{ $healthCheck.Port }}
|
||||||
interval = "{{ $healthCheck.Interval }}"
|
interval = "{{ $healthCheck.Interval }}"
|
||||||
|
@ -282,7 +282,7 @@ var _templatesDockerTmpl = []byte(`{{$backendServers := .Servers}}
|
||||||
|
|
||||||
{{ $buffering := getBuffering $backend }}
|
{{ $buffering := getBuffering $backend }}
|
||||||
{{if $buffering }}
|
{{if $buffering }}
|
||||||
[backends.backend-{{ $backendName }}.buffering]
|
[backends."backend-{{ $backendName }}".buffering]
|
||||||
maxRequestBodyBytes = {{ $buffering.MaxRequestBodyBytes }}
|
maxRequestBodyBytes = {{ $buffering.MaxRequestBodyBytes }}
|
||||||
memRequestBodyBytes = {{ $buffering.MemRequestBodyBytes }}
|
memRequestBodyBytes = {{ $buffering.MemRequestBodyBytes }}
|
||||||
maxResponseBodyBytes = {{ $buffering.MaxResponseBodyBytes }}
|
maxResponseBodyBytes = {{ $buffering.MaxResponseBodyBytes }}
|
||||||
|
@ -295,12 +295,12 @@ var _templatesDockerTmpl = []byte(`{{$backendServers := .Servers}}
|
||||||
{{if hasServices $server }}
|
{{if hasServices $server }}
|
||||||
{{ $services := getServiceNames $server }}
|
{{ $services := getServiceNames $server }}
|
||||||
{{range $serviceIndex, $serviceName := $services }}
|
{{range $serviceIndex, $serviceName := $services }}
|
||||||
[backends.backend-{{ getServiceBackendName $server $serviceName }}.servers.service-{{ $serverName }}]
|
[backends."backend-{{ getServiceBackendName $server $serviceName }}".servers."service-{{ $serverName }}"]
|
||||||
url = "{{ getServiceProtocol $server $serviceName }}://{{ getIPAddress $server }}:{{ getServicePort $server $serviceName }}"
|
url = "{{ getServiceProtocol $server $serviceName }}://{{ getIPAddress $server }}:{{ getServicePort $server $serviceName }}"
|
||||||
weight = {{ getServiceWeight $server $serviceName }}
|
weight = {{ getServiceWeight $server $serviceName }}
|
||||||
{{end}}
|
{{end}}
|
||||||
{{else}}
|
{{else}}
|
||||||
[backends.backend-{{ $backendName }}.servers.server-{{ $server.Name | replace "/" "" | replace "." "-" }}]
|
[backends."backend-{{ $backendName }}".servers."server-{{ $server.Name | replace "/" "" | replace "." "-" }}"]
|
||||||
url = "{{ getProtocol $server }}://{{ getIPAddress $server }}:{{ getPort $server }}"
|
url = "{{ getProtocol $server }}://{{ getIPAddress $server }}:{{ getPort $server }}"
|
||||||
weight = {{ getWeight $server }}
|
weight = {{ getWeight $server }}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -352,7 +352,7 @@ var _templatesDockerTmpl = []byte(`{{$backendServers := .Servers}}
|
||||||
{{if $errorPages }}
|
{{if $errorPages }}
|
||||||
[frontends."frontend-{{ $ServiceFrontendName }}".errors]
|
[frontends."frontend-{{ $ServiceFrontendName }}".errors]
|
||||||
{{ range $pageName, $page := $errorPages }}
|
{{ range $pageName, $page := $errorPages }}
|
||||||
[frontends."frontend-{{ $ServiceFrontendName }}".errors.{{ $pageName }}]
|
[frontends."frontend-{{ $ServiceFrontendName }}".errors."{{ $pageName }}"]
|
||||||
status = [{{range $page.Status }}
|
status = [{{range $page.Status }}
|
||||||
"{{.}}",
|
"{{.}}",
|
||||||
{{end}}]
|
{{end}}]
|
||||||
|
@ -367,7 +367,7 @@ var _templatesDockerTmpl = []byte(`{{$backendServers := .Servers}}
|
||||||
extractorFunc = "{{ $rateLimit.ExtractorFunc }}"
|
extractorFunc = "{{ $rateLimit.ExtractorFunc }}"
|
||||||
[frontends."frontend-{{ $ServiceFrontendName }}".rateLimit.rateSet]
|
[frontends."frontend-{{ $ServiceFrontendName }}".rateLimit.rateSet]
|
||||||
{{range $limitName, $limit := $rateLimit.RateSet }}
|
{{range $limitName, $limit := $rateLimit.RateSet }}
|
||||||
[frontends."frontend-{{ $ServiceFrontendName }}".rateLimit.rateSet.{{ $limitName }}]
|
[frontends."frontend-{{ $ServiceFrontendName }}".rateLimit.rateSet."{{ $limitName }}"]
|
||||||
period = "{{ $limit.Period }}"
|
period = "{{ $limit.Period }}"
|
||||||
average = {{ $limit.Average }}
|
average = {{ $limit.Average }}
|
||||||
burst = {{ $limit.Burst }}
|
burst = {{ $limit.Burst }}
|
||||||
|
@ -469,7 +469,7 @@ var _templatesDockerTmpl = []byte(`{{$backendServers := .Servers}}
|
||||||
{{if $errorPages }}
|
{{if $errorPages }}
|
||||||
[frontends."frontend-{{ $frontendName }}".errors]
|
[frontends."frontend-{{ $frontendName }}".errors]
|
||||||
{{range $pageName, $page := $errorPages }}
|
{{range $pageName, $page := $errorPages }}
|
||||||
[frontends."frontend-{{ $frontendName }}".errors.{{ $pageName }}]
|
[frontends."frontend-{{ $frontendName }}".errors."{{ $pageName }}"]
|
||||||
status = [{{range $page.Status }}
|
status = [{{range $page.Status }}
|
||||||
"{{.}}",
|
"{{.}}",
|
||||||
{{end}}]
|
{{end}}]
|
||||||
|
@ -483,8 +483,8 @@ var _templatesDockerTmpl = []byte(`{{$backendServers := .Servers}}
|
||||||
[frontends."frontend-{{ $frontendName }}".rateLimit]
|
[frontends."frontend-{{ $frontendName }}".rateLimit]
|
||||||
extractorFunc = "{{ $rateLimit.ExtractorFunc }}"
|
extractorFunc = "{{ $rateLimit.ExtractorFunc }}"
|
||||||
[frontends."frontend-{{ $frontendName }}".rateLimit.rateSet]
|
[frontends."frontend-{{ $frontendName }}".rateLimit.rateSet]
|
||||||
{{ range $limitName, $limit := $rateLimit.RateSet }}
|
{{range $limitName, $limit := $rateLimit.RateSet }}
|
||||||
[frontends."frontend-{{ $frontendName }}".rateLimit.rateSet.{{ $limitName }}]
|
[frontends."frontend-{{ $frontendName }}".rateLimit.rateSet."{{ $limitName }}"]
|
||||||
period = "{{ $limit.Period }}"
|
period = "{{ $limit.Period }}"
|
||||||
average = {{ $limit.Average }}
|
average = {{ $limit.Average }}
|
||||||
burst = {{ $limit.Burst }}
|
burst = {{ $limit.Burst }}
|
||||||
|
@ -598,7 +598,7 @@ var _templatesEcsTmpl = []byte(`[backends]
|
||||||
|
|
||||||
{{ $healthCheck := getHealthCheck $firstInstance }}
|
{{ $healthCheck := getHealthCheck $firstInstance }}
|
||||||
{{if $healthCheck }}
|
{{if $healthCheck }}
|
||||||
[backends.backend-{{ $serviceName }}.healthCheck]
|
[backends."backend-{{ $serviceName }}".healthCheck]
|
||||||
path = "{{ $healthCheck.Path }}"
|
path = "{{ $healthCheck.Path }}"
|
||||||
port = {{ $healthCheck.Port }}
|
port = {{ $healthCheck.Port }}
|
||||||
interval = "{{ $healthCheck.Interval }}"
|
interval = "{{ $healthCheck.Interval }}"
|
||||||
|
@ -606,7 +606,7 @@ var _templatesEcsTmpl = []byte(`[backends]
|
||||||
|
|
||||||
{{ $buffering := getBuffering $firstInstance }}
|
{{ $buffering := getBuffering $firstInstance }}
|
||||||
{{if $buffering }}
|
{{if $buffering }}
|
||||||
[backends.backend-{{ $serviceName }}.buffering]
|
[backends."backend-{{ $serviceName }}".buffering]
|
||||||
maxRequestBodyBytes = {{ $buffering.MaxRequestBodyBytes }}
|
maxRequestBodyBytes = {{ $buffering.MaxRequestBodyBytes }}
|
||||||
memRequestBodyBytes = {{ $buffering.MemRequestBodyBytes }}
|
memRequestBodyBytes = {{ $buffering.MemRequestBodyBytes }}
|
||||||
maxResponseBodyBytes = {{ $buffering.MaxResponseBodyBytes }}
|
maxResponseBodyBytes = {{ $buffering.MaxResponseBodyBytes }}
|
||||||
|
@ -615,7 +615,7 @@ var _templatesEcsTmpl = []byte(`[backends]
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{range $serverName, $server := getServers $instances }}
|
{{range $serverName, $server := getServers $instances }}
|
||||||
[backends.backend-{{ $serviceName }}.servers.{{ $serverName }}]
|
[backends."backend-{{ $serviceName }}".servers."{{ $serverName }}"]
|
||||||
url = "{{ $server.URL }}"
|
url = "{{ $server.URL }}"
|
||||||
weight = {{ $server.Weight }}
|
weight = {{ $server.Weight }}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -626,7 +626,7 @@ var _templatesEcsTmpl = []byte(`[backends]
|
||||||
{{range $serviceName, $instances := .Services }}
|
{{range $serviceName, $instances := .Services }}
|
||||||
{{range $instance := filterFrontends $instances }}
|
{{range $instance := filterFrontends $instances }}
|
||||||
|
|
||||||
[frontends.frontend-{{ $serviceName }}]
|
[frontends."frontend-{{ $serviceName }}"]
|
||||||
backend = "backend-{{ $serviceName }}"
|
backend = "backend-{{ $serviceName }}"
|
||||||
priority = {{ getPriority $instance }}
|
priority = {{ getPriority $instance }}
|
||||||
passHostHeader = {{ getPassHostHeader $instance }}
|
passHostHeader = {{ getPassHostHeader $instance }}
|
||||||
|
@ -661,7 +661,7 @@ var _templatesEcsTmpl = []byte(`[backends]
|
||||||
{{if $errorPages }}
|
{{if $errorPages }}
|
||||||
[frontends."frontend-{{ $serviceName }}".errors]
|
[frontends."frontend-{{ $serviceName }}".errors]
|
||||||
{{range $pageName, $page := $errorPages }}
|
{{range $pageName, $page := $errorPages }}
|
||||||
[frontends."frontend-{{ $serviceName }}".errors.{{ $pageName }}]
|
[frontends."frontend-{{ $serviceName }}".errors."{{ $pageName }}"]
|
||||||
status = [{{range $page.Status }}
|
status = [{{range $page.Status }}
|
||||||
"{{.}}",
|
"{{.}}",
|
||||||
{{end}}]
|
{{end}}]
|
||||||
|
@ -676,7 +676,7 @@ var _templatesEcsTmpl = []byte(`[backends]
|
||||||
extractorFunc = "{{ $rateLimit.ExtractorFunc }}"
|
extractorFunc = "{{ $rateLimit.ExtractorFunc }}"
|
||||||
[frontends."frontend-{{ $serviceName }}".rateLimit.rateSet]
|
[frontends."frontend-{{ $serviceName }}".rateLimit.rateSet]
|
||||||
{{ range $limitName, $limit := $rateLimit.RateSet }}
|
{{ range $limitName, $limit := $rateLimit.RateSet }}
|
||||||
[frontends."frontend-{{ $serviceName }}".rateLimit.rateSet.{{ $limitName }}]
|
[frontends."frontend-{{ $serviceName }}".rateLimit.rateSet."{{ $limitName }}"]
|
||||||
period = "{{ $limit.Period }}"
|
period = "{{ $limit.Period }}"
|
||||||
average = {{ $limit.Average }}
|
average = {{ $limit.Average }}
|
||||||
burst = {{ $limit.Burst }}
|
burst = {{ $limit.Burst }}
|
||||||
|
@ -737,7 +737,7 @@ var _templatesEcsTmpl = []byte(`[backends]
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
[frontends.frontend-{{ $serviceName }}.routes.route-frontend-{{ $serviceName }}]
|
[frontends."frontend-{{ $serviceName }}".routes."route-frontend-{{ $serviceName }}"]
|
||||||
rule = "{{getFrontendRule $instance}}"
|
rule = "{{getFrontendRule $instance}}"
|
||||||
|
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -764,7 +764,7 @@ var _templatesEurekaTmpl = []byte(`[backends]
|
||||||
[backends.backend-{{ $app.Name }}]
|
[backends.backend-{{ $app.Name }}]
|
||||||
|
|
||||||
{{range $instance := .Instances }}
|
{{range $instance := .Instances }}
|
||||||
[backends.backend-{{ $app.Name }}.servers.server-{{ getInstanceID $instance }}]
|
[backends."backend-{{ $app.Name }}".servers."server-{{ getInstanceID $instance }}"]
|
||||||
url = "{{ getProtocol $instance }}://{{ .IpAddr }}:{{ getPort $instance }}"
|
url = "{{ getProtocol $instance }}://{{ .IpAddr }}:{{ getPort $instance }}"
|
||||||
weight = {{ getWeight $instance }}
|
weight = {{ getWeight $instance }}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -774,11 +774,11 @@ var _templatesEurekaTmpl = []byte(`[backends]
|
||||||
[frontends]
|
[frontends]
|
||||||
{{range $app := .Applications }}
|
{{range $app := .Applications }}
|
||||||
|
|
||||||
[frontends.frontend-{{ $app.Name }}]
|
[frontends."frontend-{{ $app.Name }}"]
|
||||||
backend = "backend-{{ $app.Name }}"
|
backend = "backend-{{ $app.Name }}"
|
||||||
entryPoints = ["http"]
|
entryPoints = ["http"]
|
||||||
|
|
||||||
[frontends.frontend-{{ $app.Name }}.routes.route-host{{ $app.Name }}]
|
[frontends."frontend-{{ $app.Name }}".routes."route-host{{ $app.Name }}"]
|
||||||
rule = "Host:{{ $app.Name | tolower }}"
|
rule = "Host:{{ $app.Name | tolower }}"
|
||||||
|
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -805,7 +805,7 @@ var _templatesKubernetesTmpl = []byte(`[backends]
|
||||||
[backends."{{ $backendName }}"]
|
[backends."{{ $backendName }}"]
|
||||||
|
|
||||||
{{if $backend.CircuitBreaker }}
|
{{if $backend.CircuitBreaker }}
|
||||||
[backends."{{ $backendName }} ".circuitBreaker]
|
[backends."{{ $backendName }}".circuitBreaker]
|
||||||
expression = "{{ $backend.CircuitBreaker.Expression }}"
|
expression = "{{ $backend.CircuitBreaker.Expression }}"
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
|
@ -818,7 +818,7 @@ var _templatesKubernetesTmpl = []byte(`[backends]
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{if $backend.MaxConn }}
|
{{if $backend.MaxConn }}
|
||||||
[backends.backend-{{ $backendName }}.maxConn]
|
[backends."{{ $backendName }}".maxConn]
|
||||||
amount = {{ $backend.MaxConn.Amount }}
|
amount = {{ $backend.MaxConn.Amount }}
|
||||||
extractorFunc = "{{ $backend.MaxConn.ExtractorFunc }}"
|
extractorFunc = "{{ $backend.MaxConn.ExtractorFunc }}"
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -871,7 +871,7 @@ var _templatesKubernetesTmpl = []byte(`[backends]
|
||||||
{{if $frontend.Errors }}
|
{{if $frontend.Errors }}
|
||||||
[frontends."{{ $frontendName }}".errors]
|
[frontends."{{ $frontendName }}".errors]
|
||||||
{{range $pageName, $page := $frontend.Errors }}
|
{{range $pageName, $page := $frontend.Errors }}
|
||||||
[frontends."{{ $frontendName }}".errors.{{ $pageName }}]
|
[frontends."{{ $frontendName }}".errors."{{ $pageName }}"]
|
||||||
status = [{{range $page.Status }}
|
status = [{{range $page.Status }}
|
||||||
"{{.}}",
|
"{{.}}",
|
||||||
{{end}}]
|
{{end}}]
|
||||||
|
@ -885,7 +885,7 @@ var _templatesKubernetesTmpl = []byte(`[backends]
|
||||||
extractorFunc = "{{ $frontend.RateLimit.ExtractorFunc }}"
|
extractorFunc = "{{ $frontend.RateLimit.ExtractorFunc }}"
|
||||||
[frontends."{{ $frontendName }}".rateLimit.rateSet]
|
[frontends."{{ $frontendName }}".rateLimit.rateSet]
|
||||||
{{range $limitName, $limit := $frontend.RateLimit.RateSet }}
|
{{range $limitName, $limit := $frontend.RateLimit.RateSet }}
|
||||||
[frontends."{{ $frontendName }}".rateLimit.rateSet.{{ $limitName }}]
|
[frontends."{{ $frontendName }}".rateLimit.rateSet."{{ $limitName }}"]
|
||||||
period = "{{ $limit.Period }}"
|
period = "{{ $limit.Period }}"
|
||||||
average = {{ $limit.Average }}
|
average = {{ $limit.Average }}
|
||||||
burst = {{ $limit.Burst }}
|
burst = {{ $limit.Burst }}
|
||||||
|
@ -1065,7 +1065,7 @@ var _templatesKvTmpl = []byte(`[backends]
|
||||||
{{if $errorPages }}
|
{{if $errorPages }}
|
||||||
[frontends."{{ $frontendName }}".errors]
|
[frontends."{{ $frontendName }}".errors]
|
||||||
{{range $pageName, $page := $errorPages }}
|
{{range $pageName, $page := $errorPages }}
|
||||||
[frontends."{{$frontendName}}".errors.{{ $pageName }}]
|
[frontends."{{$frontendName}}".errors."{{ $pageName }}"]
|
||||||
status = [{{range $page.Status }}
|
status = [{{range $page.Status }}
|
||||||
"{{.}}",
|
"{{.}}",
|
||||||
{{end}}]
|
{{end}}]
|
||||||
|
@ -1080,7 +1080,7 @@ var _templatesKvTmpl = []byte(`[backends]
|
||||||
extractorFunc = "{{ $rateLimit.ExtractorFunc }}"
|
extractorFunc = "{{ $rateLimit.ExtractorFunc }}"
|
||||||
[frontends."{{ $frontendName }}".rateLimit.rateSet]
|
[frontends."{{ $frontendName }}".rateLimit.rateSet]
|
||||||
{{range $limitName, $rateLimit := $rateLimit.RateSet }}
|
{{range $limitName, $rateLimit := $rateLimit.RateSet }}
|
||||||
[frontends."{{ $frontendName }}".rateLimit.rateSet.{{ $limitName }}]
|
[frontends."{{ $frontendName }}".rateLimit.rateSet."{{ $limitName }}"]
|
||||||
period = "{{ $rateLimit.Period }}"
|
period = "{{ $rateLimit.Period }}"
|
||||||
average = {{ $rateLimit.Average }}
|
average = {{ $rateLimit.Average }}
|
||||||
burst = {{ $rateLimit.Burst }}
|
burst = {{ $rateLimit.Burst }}
|
||||||
|
@ -1276,7 +1276,7 @@ var _templatesMarathonTmpl = []byte(`{{ $apps := .Applications }}
|
||||||
{{if $errorPages }}
|
{{if $errorPages }}
|
||||||
[frontends."{{ $frontendName }}".errors]
|
[frontends."{{ $frontendName }}".errors]
|
||||||
{{range $pageName, $page := $errorPages }}
|
{{range $pageName, $page := $errorPages }}
|
||||||
[frontends."{{ $frontendName }}".errors.{{ $pageName }}]
|
[frontends."{{ $frontendName }}".errors."{{ $pageName }}"]
|
||||||
status = [{{range $page.Status }}
|
status = [{{range $page.Status }}
|
||||||
"{{.}}",
|
"{{.}}",
|
||||||
{{end}}]
|
{{end}}]
|
||||||
|
@ -1291,7 +1291,7 @@ var _templatesMarathonTmpl = []byte(`{{ $apps := .Applications }}
|
||||||
extractorFunc = "{{ $rateLimit.ExtractorFunc }}"
|
extractorFunc = "{{ $rateLimit.ExtractorFunc }}"
|
||||||
[frontends."{{ $frontendName }}".rateLimit.rateSet]
|
[frontends."{{ $frontendName }}".rateLimit.rateSet]
|
||||||
{{ range $limitName, $limit := $rateLimit.RateSet }}
|
{{ range $limitName, $limit := $rateLimit.RateSet }}
|
||||||
[frontends."{{ $frontendName }}".rateLimit.rateSet.{{ $limitName }}]
|
[frontends."{{ $frontendName }}".rateLimit.rateSet."{{ $limitName }}"]
|
||||||
period = "{{ $limit.Period }}"
|
period = "{{ $limit.Period }}"
|
||||||
average = {{ $limit.Average }}
|
average = {{ $limit.Average }}
|
||||||
burst = {{ $limit.Burst }}
|
burst = {{ $limit.Burst }}
|
||||||
|
@ -1379,7 +1379,7 @@ var _templatesMesosTmpl = []byte(`[backends]
|
||||||
{{ $app := index $tasks 0 }}
|
{{ $app := index $tasks 0 }}
|
||||||
{{ $backendName := getBackendName $app }}
|
{{ $backendName := getBackendName $app }}
|
||||||
|
|
||||||
[backends.backend-{{ $backendName }}]
|
[backends."backend-{{ $backendName }}"]
|
||||||
|
|
||||||
{{ $circuitBreaker := getCircuitBreaker $app }}
|
{{ $circuitBreaker := getCircuitBreaker $app }}
|
||||||
{{if $circuitBreaker }}
|
{{if $circuitBreaker }}
|
||||||
|
@ -1407,7 +1407,7 @@ var _templatesMesosTmpl = []byte(`[backends]
|
||||||
|
|
||||||
{{ $healthCheck := getHealthCheck $app }}
|
{{ $healthCheck := getHealthCheck $app }}
|
||||||
{{if $healthCheck }}
|
{{if $healthCheck }}
|
||||||
[backends.backend-{{ $backendName }}.healthCheck]
|
[backends."backend-{{ $backendName }}".healthCheck]
|
||||||
path = "{{ $healthCheck.Path }}"
|
path = "{{ $healthCheck.Path }}"
|
||||||
port = {{ $healthCheck.Port }}
|
port = {{ $healthCheck.Port }}
|
||||||
interval = "{{ $healthCheck.Interval }}"
|
interval = "{{ $healthCheck.Interval }}"
|
||||||
|
@ -1415,7 +1415,7 @@ var _templatesMesosTmpl = []byte(`[backends]
|
||||||
|
|
||||||
{{ $buffering := getBuffering $app }}
|
{{ $buffering := getBuffering $app }}
|
||||||
{{if $buffering }}
|
{{if $buffering }}
|
||||||
[backends.backend-{{ $backendName }}.buffering]
|
[backends."backend-{{ $backendName }}".buffering]
|
||||||
maxRequestBodyBytes = {{ $buffering.MaxRequestBodyBytes }}
|
maxRequestBodyBytes = {{ $buffering.MaxRequestBodyBytes }}
|
||||||
memRequestBodyBytes = {{ $buffering.MemRequestBodyBytes }}
|
memRequestBodyBytes = {{ $buffering.MemRequestBodyBytes }}
|
||||||
maxResponseBodyBytes = {{ $buffering.MaxResponseBodyBytes }}
|
maxResponseBodyBytes = {{ $buffering.MaxResponseBodyBytes }}
|
||||||
|
@ -1424,7 +1424,7 @@ var _templatesMesosTmpl = []byte(`[backends]
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{range $serverName, $server := getServers $tasks }}
|
{{range $serverName, $server := getServers $tasks }}
|
||||||
[backends.backend-{{ $backendName }}.servers.{{ $serverName }}]
|
[backends."backend-{{ $backendName }}".servers."{{ $serverName }}"]
|
||||||
url = "{{ $server.URL }}"
|
url = "{{ $server.URL }}"
|
||||||
weight = {{ $server.Weight }}
|
weight = {{ $server.Weight }}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -1435,7 +1435,7 @@ var _templatesMesosTmpl = []byte(`[backends]
|
||||||
{{ $app := index $tasks 0 }}
|
{{ $app := index $tasks 0 }}
|
||||||
{{ $frontendName := getFrontEndName $app }}
|
{{ $frontendName := getFrontEndName $app }}
|
||||||
|
|
||||||
[frontends.frontend-{{ $frontendName }}]
|
[frontends."frontend-{{ $frontendName }}"]
|
||||||
backend = "backend-{{ getBackendName $app }}"
|
backend = "backend-{{ getBackendName $app }}"
|
||||||
priority = {{ getPriority $app }}
|
priority = {{ getPriority $app }}
|
||||||
passHostHeader = {{ getPassHostHeader $app }}
|
passHostHeader = {{ getPassHostHeader $app }}
|
||||||
|
@ -1469,7 +1469,7 @@ var _templatesMesosTmpl = []byte(`[backends]
|
||||||
{{if $errorPages }}
|
{{if $errorPages }}
|
||||||
[frontends."frontend-{{ $frontendName }}".errors]
|
[frontends."frontend-{{ $frontendName }}".errors]
|
||||||
{{range $pageName, $page := $errorPages }}
|
{{range $pageName, $page := $errorPages }}
|
||||||
[frontends."frontend-{{ $frontendName }}".errors.{{ $pageName }}]
|
[frontends."frontend-{{ $frontendName }}".errors."{{ $pageName }}"]
|
||||||
status = [{{range $page.Status }}
|
status = [{{range $page.Status }}
|
||||||
"{{.}}",
|
"{{.}}",
|
||||||
{{end}}]
|
{{end}}]
|
||||||
|
@ -1484,7 +1484,7 @@ var _templatesMesosTmpl = []byte(`[backends]
|
||||||
extractorFunc = "{{ $rateLimit.ExtractorFunc }}"
|
extractorFunc = "{{ $rateLimit.ExtractorFunc }}"
|
||||||
[frontends."frontend-{{ $frontendName }}".rateLimit.rateSet]
|
[frontends."frontend-{{ $frontendName }}".rateLimit.rateSet]
|
||||||
{{ range $limitName, $limit := $rateLimit.RateSet }}
|
{{ range $limitName, $limit := $rateLimit.RateSet }}
|
||||||
[frontends."frontend-{{ $frontendName }}".rateLimit.rateSet.{{ $limitName }}]
|
[frontends."frontend-{{ $frontendName }}".rateLimit.rateSet."{{ $limitName }}"]
|
||||||
period = "{{ $limit.Period }}"
|
period = "{{ $limit.Period }}"
|
||||||
average = {{ $limit.Average }}
|
average = {{ $limit.Average }}
|
||||||
burst = {{ $limit.Burst }}
|
burst = {{ $limit.Burst }}
|
||||||
|
@ -1545,7 +1545,7 @@ var _templatesMesosTmpl = []byte(`[backends]
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
[frontends.frontend-{{ $frontendName }}.routes.route-host-{{ $frontendName }}]
|
[frontends."frontend-{{ $frontendName }}".routes."route-host-{{ $frontendName }}"]
|
||||||
rule = "{{ getFrontendRule $app }}"
|
rule = "{{ getFrontendRule $app }}"
|
||||||
|
|
||||||
{{end}}`)
|
{{end}}`)
|
||||||
|
@ -1594,7 +1594,7 @@ var _templatesRancherTmpl = []byte(`{{ $backendServers := .Backends }}
|
||||||
[backends]
|
[backends]
|
||||||
{{range $backendName, $backend := .Backends }}
|
{{range $backendName, $backend := .Backends }}
|
||||||
|
|
||||||
[backends.backend-{{ $backendName }}]
|
[backends."backend-{{ $backendName }}"]
|
||||||
|
|
||||||
{{ $circuitBreaker := getCircuitBreaker $backend }}
|
{{ $circuitBreaker := getCircuitBreaker $backend }}
|
||||||
{{if $circuitBreaker }}
|
{{if $circuitBreaker }}
|
||||||
|
@ -1622,7 +1622,7 @@ var _templatesRancherTmpl = []byte(`{{ $backendServers := .Backends }}
|
||||||
|
|
||||||
{{ $healthCheck := getHealthCheck $backend }}
|
{{ $healthCheck := getHealthCheck $backend }}
|
||||||
{{if $healthCheck }}
|
{{if $healthCheck }}
|
||||||
[backends.backend-{{ $backendName }}.healthCheck]
|
[backends."backend-{{ $backendName }}".healthCheck]
|
||||||
path = "{{ $healthCheck.Path }}"
|
path = "{{ $healthCheck.Path }}"
|
||||||
port = {{ $healthCheck.Port }}
|
port = {{ $healthCheck.Port }}
|
||||||
interval = "{{ $healthCheck.Interval }}"
|
interval = "{{ $healthCheck.Interval }}"
|
||||||
|
@ -1639,7 +1639,7 @@ var _templatesRancherTmpl = []byte(`{{ $backendServers := .Backends }}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{range $serverName, $server := getServers $backend}}
|
{{range $serverName, $server := getServers $backend}}
|
||||||
[backends.backend-{{ $backendName }}.servers.{{ $serverName }}]
|
[backends."backend-{{ $backendName }}".servers."{{ $serverName }}"]
|
||||||
url = "{{ $server.URL }}"
|
url = "{{ $server.URL }}"
|
||||||
weight = {{ $server.Weight }}
|
weight = {{ $server.Weight }}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -1683,7 +1683,7 @@ var _templatesRancherTmpl = []byte(`{{ $backendServers := .Backends }}
|
||||||
{{if $errorPages }}
|
{{if $errorPages }}
|
||||||
[frontends."frontend-{{ $frontendName }}".errors]
|
[frontends."frontend-{{ $frontendName }}".errors]
|
||||||
{{range $pageName, $page := $errorPages }}
|
{{range $pageName, $page := $errorPages }}
|
||||||
[frontends."frontend-{{ $frontendName }}".errors.{{ $pageName }}]
|
[frontends."frontend-{{ $frontendName }}".errors."{{ $pageName }}"]
|
||||||
status = [{{range $page.Status }}
|
status = [{{range $page.Status }}
|
||||||
"{{.}}",
|
"{{.}}",
|
||||||
{{end}}]
|
{{end}}]
|
||||||
|
@ -1698,7 +1698,7 @@ var _templatesRancherTmpl = []byte(`{{ $backendServers := .Backends }}
|
||||||
extractorFunc = "{{ $rateLimit.ExtractorFunc }}"
|
extractorFunc = "{{ $rateLimit.ExtractorFunc }}"
|
||||||
[frontends."frontend-{{ $frontendName }}".rateLimit.rateSet]
|
[frontends."frontend-{{ $frontendName }}".rateLimit.rateSet]
|
||||||
{{ range $limitName, $limit := $rateLimit.RateSet }}
|
{{ range $limitName, $limit := $rateLimit.RateSet }}
|
||||||
[frontends."frontend-{{ $frontendName }}".rateLimit.rateSet.{{ $limitName }}]
|
[frontends."frontend-{{ $frontendName }}".rateLimit.rateSet."{{ $limitName }}"]
|
||||||
period = "{{ $limit.Period }}"
|
period = "{{ $limit.Period }}"
|
||||||
average = {{ $limit.Average }}
|
average = {{ $limit.Average }}
|
||||||
burst = {{ $limit.Burst }}
|
burst = {{ $limit.Burst }}
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
{{ $healthCheck := getHealthCheck $service.Attributes }}
|
{{ $healthCheck := getHealthCheck $service.Attributes }}
|
||||||
{{if $healthCheck }}
|
{{if $healthCheck }}
|
||||||
[backends.backend-{{ $backendName }}.healthCheck]
|
[backends."backend-{{ $backendName }}".healthCheck]
|
||||||
path = "{{ $healthCheck.Path }}"
|
path = "{{ $healthCheck.Path }}"
|
||||||
port = {{ $healthCheck.Port }}
|
port = {{ $healthCheck.Port }}
|
||||||
interval = "{{ $healthCheck.Interval }}"
|
interval = "{{ $healthCheck.Interval }}"
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
{{ $buffering := getBuffering $service.Attributes }}
|
{{ $buffering := getBuffering $service.Attributes }}
|
||||||
{{if $buffering }}
|
{{if $buffering }}
|
||||||
[backends.backend-{{ $backendName }}.buffering]
|
[backends."backend-{{ $backendName }}".buffering]
|
||||||
maxRequestBodyBytes = {{ $buffering.MaxRequestBodyBytes }}
|
maxRequestBodyBytes = {{ $buffering.MaxRequestBodyBytes }}
|
||||||
memRequestBodyBytes = {{ $buffering.MemRequestBodyBytes }}
|
memRequestBodyBytes = {{ $buffering.MemRequestBodyBytes }}
|
||||||
maxResponseBodyBytes = {{ $buffering.MaxResponseBodyBytes }}
|
maxResponseBodyBytes = {{ $buffering.MaxResponseBodyBytes }}
|
||||||
|
@ -89,7 +89,7 @@
|
||||||
{{if hasErrorPages $service.Attributes }}
|
{{if hasErrorPages $service.Attributes }}
|
||||||
[frontends."frontend-{{ $service.ServiceName }}".errors]
|
[frontends."frontend-{{ $service.ServiceName }}".errors]
|
||||||
{{range $pageName, $page := getErrorPages $service.Attributes }}
|
{{range $pageName, $page := getErrorPages $service.Attributes }}
|
||||||
[frontends."frontend-{{ $service.ServiceName }}".errors.{{ $pageName }}]
|
[frontends."frontend-{{ $service.ServiceName }}".errors."{{ $pageName }}"]
|
||||||
status = [{{range $page.Status }}
|
status = [{{range $page.Status }}
|
||||||
"{{.}}",
|
"{{.}}",
|
||||||
{{end}}]
|
{{end}}]
|
||||||
|
@ -105,7 +105,7 @@
|
||||||
|
|
||||||
[frontends."frontend-{{ $service.ServiceName }}".rateLimit.rateSet]
|
[frontends."frontend-{{ $service.ServiceName }}".rateLimit.rateSet]
|
||||||
{{range $limitName, $limit := $rateLimit.RateSet }}
|
{{range $limitName, $limit := $rateLimit.RateSet }}
|
||||||
[frontends."frontend-{{ $service.ServiceName }}".rateLimit.rateSet.{{ $limitName }}]
|
[frontends."frontend-{{ $service.ServiceName }}".rateLimit.rateSet."{{ $limitName }}"]
|
||||||
period = "{{ $limit.Period }}"
|
period = "{{ $limit.Period }}"
|
||||||
average = {{ $limit.Average }}
|
average = {{ $limit.Average }}
|
||||||
burst = {{ $limit.Burst }}
|
burst = {{ $limit.Burst }}
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
{{ $healthCheck := getHealthCheck $backend }}
|
{{ $healthCheck := getHealthCheck $backend }}
|
||||||
{{if $healthCheck }}
|
{{if $healthCheck }}
|
||||||
[backends.backend-{{ $backendName }}.healthCheck]
|
[backends."backend-{{ $backendName }}".healthCheck]
|
||||||
path = "{{ $healthCheck.Path }}"
|
path = "{{ $healthCheck.Path }}"
|
||||||
port = {{ $healthCheck.Port }}
|
port = {{ $healthCheck.Port }}
|
||||||
interval = "{{ $healthCheck.Interval }}"
|
interval = "{{ $healthCheck.Interval }}"
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
{{ $buffering := getBuffering $backend }}
|
{{ $buffering := getBuffering $backend }}
|
||||||
{{if $buffering }}
|
{{if $buffering }}
|
||||||
[backends.backend-{{ $backendName }}.buffering]
|
[backends."backend-{{ $backendName }}".buffering]
|
||||||
maxRequestBodyBytes = {{ $buffering.MaxRequestBodyBytes }}
|
maxRequestBodyBytes = {{ $buffering.MaxRequestBodyBytes }}
|
||||||
memRequestBodyBytes = {{ $buffering.MemRequestBodyBytes }}
|
memRequestBodyBytes = {{ $buffering.MemRequestBodyBytes }}
|
||||||
maxResponseBodyBytes = {{ $buffering.MaxResponseBodyBytes }}
|
maxResponseBodyBytes = {{ $buffering.MaxResponseBodyBytes }}
|
||||||
|
@ -49,12 +49,12 @@
|
||||||
{{if hasServices $server }}
|
{{if hasServices $server }}
|
||||||
{{ $services := getServiceNames $server }}
|
{{ $services := getServiceNames $server }}
|
||||||
{{range $serviceIndex, $serviceName := $services }}
|
{{range $serviceIndex, $serviceName := $services }}
|
||||||
[backends.backend-{{ getServiceBackendName $server $serviceName }}.servers.service-{{ $serverName }}]
|
[backends."backend-{{ getServiceBackendName $server $serviceName }}".servers."service-{{ $serverName }}"]
|
||||||
url = "{{ getServiceProtocol $server $serviceName }}://{{ getIPAddress $server }}:{{ getServicePort $server $serviceName }}"
|
url = "{{ getServiceProtocol $server $serviceName }}://{{ getIPAddress $server }}:{{ getServicePort $server $serviceName }}"
|
||||||
weight = {{ getServiceWeight $server $serviceName }}
|
weight = {{ getServiceWeight $server $serviceName }}
|
||||||
{{end}}
|
{{end}}
|
||||||
{{else}}
|
{{else}}
|
||||||
[backends.backend-{{ $backendName }}.servers.server-{{ $server.Name | replace "/" "" | replace "." "-" }}]
|
[backends."backend-{{ $backendName }}".servers."server-{{ $server.Name | replace "/" "" | replace "." "-" }}"]
|
||||||
url = "{{ getProtocol $server }}://{{ getIPAddress $server }}:{{ getPort $server }}"
|
url = "{{ getProtocol $server }}://{{ getIPAddress $server }}:{{ getPort $server }}"
|
||||||
weight = {{ getWeight $server }}
|
weight = {{ getWeight $server }}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -106,7 +106,7 @@
|
||||||
{{if $errorPages }}
|
{{if $errorPages }}
|
||||||
[frontends."frontend-{{ $ServiceFrontendName }}".errors]
|
[frontends."frontend-{{ $ServiceFrontendName }}".errors]
|
||||||
{{ range $pageName, $page := $errorPages }}
|
{{ range $pageName, $page := $errorPages }}
|
||||||
[frontends."frontend-{{ $ServiceFrontendName }}".errors.{{ $pageName }}]
|
[frontends."frontend-{{ $ServiceFrontendName }}".errors."{{ $pageName }}"]
|
||||||
status = [{{range $page.Status }}
|
status = [{{range $page.Status }}
|
||||||
"{{.}}",
|
"{{.}}",
|
||||||
{{end}}]
|
{{end}}]
|
||||||
|
@ -121,7 +121,7 @@
|
||||||
extractorFunc = "{{ $rateLimit.ExtractorFunc }}"
|
extractorFunc = "{{ $rateLimit.ExtractorFunc }}"
|
||||||
[frontends."frontend-{{ $ServiceFrontendName }}".rateLimit.rateSet]
|
[frontends."frontend-{{ $ServiceFrontendName }}".rateLimit.rateSet]
|
||||||
{{range $limitName, $limit := $rateLimit.RateSet }}
|
{{range $limitName, $limit := $rateLimit.RateSet }}
|
||||||
[frontends."frontend-{{ $ServiceFrontendName }}".rateLimit.rateSet.{{ $limitName }}]
|
[frontends."frontend-{{ $ServiceFrontendName }}".rateLimit.rateSet."{{ $limitName }}"]
|
||||||
period = "{{ $limit.Period }}"
|
period = "{{ $limit.Period }}"
|
||||||
average = {{ $limit.Average }}
|
average = {{ $limit.Average }}
|
||||||
burst = {{ $limit.Burst }}
|
burst = {{ $limit.Burst }}
|
||||||
|
@ -223,7 +223,7 @@
|
||||||
{{if $errorPages }}
|
{{if $errorPages }}
|
||||||
[frontends."frontend-{{ $frontendName }}".errors]
|
[frontends."frontend-{{ $frontendName }}".errors]
|
||||||
{{range $pageName, $page := $errorPages }}
|
{{range $pageName, $page := $errorPages }}
|
||||||
[frontends."frontend-{{ $frontendName }}".errors.{{ $pageName }}]
|
[frontends."frontend-{{ $frontendName }}".errors."{{ $pageName }}"]
|
||||||
status = [{{range $page.Status }}
|
status = [{{range $page.Status }}
|
||||||
"{{.}}",
|
"{{.}}",
|
||||||
{{end}}]
|
{{end}}]
|
||||||
|
@ -237,8 +237,8 @@
|
||||||
[frontends."frontend-{{ $frontendName }}".rateLimit]
|
[frontends."frontend-{{ $frontendName }}".rateLimit]
|
||||||
extractorFunc = "{{ $rateLimit.ExtractorFunc }}"
|
extractorFunc = "{{ $rateLimit.ExtractorFunc }}"
|
||||||
[frontends."frontend-{{ $frontendName }}".rateLimit.rateSet]
|
[frontends."frontend-{{ $frontendName }}".rateLimit.rateSet]
|
||||||
{{ range $limitName, $limit := $rateLimit.RateSet }}
|
{{range $limitName, $limit := $rateLimit.RateSet }}
|
||||||
[frontends."frontend-{{ $frontendName }}".rateLimit.rateSet.{{ $limitName }}]
|
[frontends."frontend-{{ $frontendName }}".rateLimit.rateSet."{{ $limitName }}"]
|
||||||
period = "{{ $limit.Period }}"
|
period = "{{ $limit.Period }}"
|
||||||
average = {{ $limit.Average }}
|
average = {{ $limit.Average }}
|
||||||
burst = {{ $limit.Burst }}
|
burst = {{ $limit.Burst }}
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
{{ $healthCheck := getHealthCheck $firstInstance }}
|
{{ $healthCheck := getHealthCheck $firstInstance }}
|
||||||
{{if $healthCheck }}
|
{{if $healthCheck }}
|
||||||
[backends.backend-{{ $serviceName }}.healthCheck]
|
[backends."backend-{{ $serviceName }}".healthCheck]
|
||||||
path = "{{ $healthCheck.Path }}"
|
path = "{{ $healthCheck.Path }}"
|
||||||
port = {{ $healthCheck.Port }}
|
port = {{ $healthCheck.Port }}
|
||||||
interval = "{{ $healthCheck.Interval }}"
|
interval = "{{ $healthCheck.Interval }}"
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
{{ $buffering := getBuffering $firstInstance }}
|
{{ $buffering := getBuffering $firstInstance }}
|
||||||
{{if $buffering }}
|
{{if $buffering }}
|
||||||
[backends.backend-{{ $serviceName }}.buffering]
|
[backends."backend-{{ $serviceName }}".buffering]
|
||||||
maxRequestBodyBytes = {{ $buffering.MaxRequestBodyBytes }}
|
maxRequestBodyBytes = {{ $buffering.MaxRequestBodyBytes }}
|
||||||
memRequestBodyBytes = {{ $buffering.MemRequestBodyBytes }}
|
memRequestBodyBytes = {{ $buffering.MemRequestBodyBytes }}
|
||||||
maxResponseBodyBytes = {{ $buffering.MaxResponseBodyBytes }}
|
maxResponseBodyBytes = {{ $buffering.MaxResponseBodyBytes }}
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{range $serverName, $server := getServers $instances }}
|
{{range $serverName, $server := getServers $instances }}
|
||||||
[backends.backend-{{ $serviceName }}.servers.{{ $serverName }}]
|
[backends."backend-{{ $serviceName }}".servers."{{ $serverName }}"]
|
||||||
url = "{{ $server.URL }}"
|
url = "{{ $server.URL }}"
|
||||||
weight = {{ $server.Weight }}
|
weight = {{ $server.Weight }}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -56,7 +56,7 @@
|
||||||
{{range $serviceName, $instances := .Services }}
|
{{range $serviceName, $instances := .Services }}
|
||||||
{{range $instance := filterFrontends $instances }}
|
{{range $instance := filterFrontends $instances }}
|
||||||
|
|
||||||
[frontends.frontend-{{ $serviceName }}]
|
[frontends."frontend-{{ $serviceName }}"]
|
||||||
backend = "backend-{{ $serviceName }}"
|
backend = "backend-{{ $serviceName }}"
|
||||||
priority = {{ getPriority $instance }}
|
priority = {{ getPriority $instance }}
|
||||||
passHostHeader = {{ getPassHostHeader $instance }}
|
passHostHeader = {{ getPassHostHeader $instance }}
|
||||||
|
@ -91,7 +91,7 @@
|
||||||
{{if $errorPages }}
|
{{if $errorPages }}
|
||||||
[frontends."frontend-{{ $serviceName }}".errors]
|
[frontends."frontend-{{ $serviceName }}".errors]
|
||||||
{{range $pageName, $page := $errorPages }}
|
{{range $pageName, $page := $errorPages }}
|
||||||
[frontends."frontend-{{ $serviceName }}".errors.{{ $pageName }}]
|
[frontends."frontend-{{ $serviceName }}".errors."{{ $pageName }}"]
|
||||||
status = [{{range $page.Status }}
|
status = [{{range $page.Status }}
|
||||||
"{{.}}",
|
"{{.}}",
|
||||||
{{end}}]
|
{{end}}]
|
||||||
|
@ -106,7 +106,7 @@
|
||||||
extractorFunc = "{{ $rateLimit.ExtractorFunc }}"
|
extractorFunc = "{{ $rateLimit.ExtractorFunc }}"
|
||||||
[frontends."frontend-{{ $serviceName }}".rateLimit.rateSet]
|
[frontends."frontend-{{ $serviceName }}".rateLimit.rateSet]
|
||||||
{{ range $limitName, $limit := $rateLimit.RateSet }}
|
{{ range $limitName, $limit := $rateLimit.RateSet }}
|
||||||
[frontends."frontend-{{ $serviceName }}".rateLimit.rateSet.{{ $limitName }}]
|
[frontends."frontend-{{ $serviceName }}".rateLimit.rateSet."{{ $limitName }}"]
|
||||||
period = "{{ $limit.Period }}"
|
period = "{{ $limit.Period }}"
|
||||||
average = {{ $limit.Average }}
|
average = {{ $limit.Average }}
|
||||||
burst = {{ $limit.Burst }}
|
burst = {{ $limit.Burst }}
|
||||||
|
@ -167,7 +167,7 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
[frontends.frontend-{{ $serviceName }}.routes.route-frontend-{{ $serviceName }}]
|
[frontends."frontend-{{ $serviceName }}".routes."route-frontend-{{ $serviceName }}"]
|
||||||
rule = "{{getFrontendRule $instance}}"
|
rule = "{{getFrontendRule $instance}}"
|
||||||
|
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
[backends.backend-{{ $app.Name }}]
|
[backends.backend-{{ $app.Name }}]
|
||||||
|
|
||||||
{{range $instance := .Instances }}
|
{{range $instance := .Instances }}
|
||||||
[backends.backend-{{ $app.Name }}.servers.server-{{ getInstanceID $instance }}]
|
[backends."backend-{{ $app.Name }}".servers."server-{{ getInstanceID $instance }}"]
|
||||||
url = "{{ getProtocol $instance }}://{{ .IpAddr }}:{{ getPort $instance }}"
|
url = "{{ getProtocol $instance }}://{{ .IpAddr }}:{{ getPort $instance }}"
|
||||||
weight = {{ getWeight $instance }}
|
weight = {{ getWeight $instance }}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -14,11 +14,11 @@
|
||||||
[frontends]
|
[frontends]
|
||||||
{{range $app := .Applications }}
|
{{range $app := .Applications }}
|
||||||
|
|
||||||
[frontends.frontend-{{ $app.Name }}]
|
[frontends."frontend-{{ $app.Name }}"]
|
||||||
backend = "backend-{{ $app.Name }}"
|
backend = "backend-{{ $app.Name }}"
|
||||||
entryPoints = ["http"]
|
entryPoints = ["http"]
|
||||||
|
|
||||||
[frontends.frontend-{{ $app.Name }}.routes.route-host{{ $app.Name }}]
|
[frontends."frontend-{{ $app.Name }}".routes."route-host{{ $app.Name }}"]
|
||||||
rule = "Host:{{ $app.Name | tolower }}"
|
rule = "Host:{{ $app.Name | tolower }}"
|
||||||
|
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
[backends."{{ $backendName }}"]
|
[backends."{{ $backendName }}"]
|
||||||
|
|
||||||
{{if $backend.CircuitBreaker }}
|
{{if $backend.CircuitBreaker }}
|
||||||
[backends."{{ $backendName }} ".circuitBreaker]
|
[backends."{{ $backendName }}".circuitBreaker]
|
||||||
expression = "{{ $backend.CircuitBreaker.Expression }}"
|
expression = "{{ $backend.CircuitBreaker.Expression }}"
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{if $backend.MaxConn }}
|
{{if $backend.MaxConn }}
|
||||||
[backends.backend-{{ $backendName }}.maxConn]
|
[backends."{{ $backendName }}".maxConn]
|
||||||
amount = {{ $backend.MaxConn.Amount }}
|
amount = {{ $backend.MaxConn.Amount }}
|
||||||
extractorFunc = "{{ $backend.MaxConn.ExtractorFunc }}"
|
extractorFunc = "{{ $backend.MaxConn.ExtractorFunc }}"
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -70,7 +70,7 @@
|
||||||
{{if $frontend.Errors }}
|
{{if $frontend.Errors }}
|
||||||
[frontends."{{ $frontendName }}".errors]
|
[frontends."{{ $frontendName }}".errors]
|
||||||
{{range $pageName, $page := $frontend.Errors }}
|
{{range $pageName, $page := $frontend.Errors }}
|
||||||
[frontends."{{ $frontendName }}".errors.{{ $pageName }}]
|
[frontends."{{ $frontendName }}".errors."{{ $pageName }}"]
|
||||||
status = [{{range $page.Status }}
|
status = [{{range $page.Status }}
|
||||||
"{{.}}",
|
"{{.}}",
|
||||||
{{end}}]
|
{{end}}]
|
||||||
|
@ -84,7 +84,7 @@
|
||||||
extractorFunc = "{{ $frontend.RateLimit.ExtractorFunc }}"
|
extractorFunc = "{{ $frontend.RateLimit.ExtractorFunc }}"
|
||||||
[frontends."{{ $frontendName }}".rateLimit.rateSet]
|
[frontends."{{ $frontendName }}".rateLimit.rateSet]
|
||||||
{{range $limitName, $limit := $frontend.RateLimit.RateSet }}
|
{{range $limitName, $limit := $frontend.RateLimit.RateSet }}
|
||||||
[frontends."{{ $frontendName }}".rateLimit.rateSet.{{ $limitName }}]
|
[frontends."{{ $frontendName }}".rateLimit.rateSet."{{ $limitName }}"]
|
||||||
period = "{{ $limit.Period }}"
|
period = "{{ $limit.Period }}"
|
||||||
average = {{ $limit.Average }}
|
average = {{ $limit.Average }}
|
||||||
burst = {{ $limit.Burst }}
|
burst = {{ $limit.Burst }}
|
||||||
|
|
|
@ -90,7 +90,7 @@
|
||||||
{{if $errorPages }}
|
{{if $errorPages }}
|
||||||
[frontends."{{ $frontendName }}".errors]
|
[frontends."{{ $frontendName }}".errors]
|
||||||
{{range $pageName, $page := $errorPages }}
|
{{range $pageName, $page := $errorPages }}
|
||||||
[frontends."{{$frontendName}}".errors.{{ $pageName }}]
|
[frontends."{{$frontendName}}".errors."{{ $pageName }}"]
|
||||||
status = [{{range $page.Status }}
|
status = [{{range $page.Status }}
|
||||||
"{{.}}",
|
"{{.}}",
|
||||||
{{end}}]
|
{{end}}]
|
||||||
|
@ -105,7 +105,7 @@
|
||||||
extractorFunc = "{{ $rateLimit.ExtractorFunc }}"
|
extractorFunc = "{{ $rateLimit.ExtractorFunc }}"
|
||||||
[frontends."{{ $frontendName }}".rateLimit.rateSet]
|
[frontends."{{ $frontendName }}".rateLimit.rateSet]
|
||||||
{{range $limitName, $rateLimit := $rateLimit.RateSet }}
|
{{range $limitName, $rateLimit := $rateLimit.RateSet }}
|
||||||
[frontends."{{ $frontendName }}".rateLimit.rateSet.{{ $limitName }}]
|
[frontends."{{ $frontendName }}".rateLimit.rateSet."{{ $limitName }}"]
|
||||||
period = "{{ $rateLimit.Period }}"
|
period = "{{ $rateLimit.Period }}"
|
||||||
average = {{ $rateLimit.Average }}
|
average = {{ $rateLimit.Average }}
|
||||||
burst = {{ $rateLimit.Burst }}
|
burst = {{ $rateLimit.Burst }}
|
||||||
|
|
|
@ -97,7 +97,7 @@
|
||||||
{{if $errorPages }}
|
{{if $errorPages }}
|
||||||
[frontends."{{ $frontendName }}".errors]
|
[frontends."{{ $frontendName }}".errors]
|
||||||
{{range $pageName, $page := $errorPages }}
|
{{range $pageName, $page := $errorPages }}
|
||||||
[frontends."{{ $frontendName }}".errors.{{ $pageName }}]
|
[frontends."{{ $frontendName }}".errors."{{ $pageName }}"]
|
||||||
status = [{{range $page.Status }}
|
status = [{{range $page.Status }}
|
||||||
"{{.}}",
|
"{{.}}",
|
||||||
{{end}}]
|
{{end}}]
|
||||||
|
@ -112,7 +112,7 @@
|
||||||
extractorFunc = "{{ $rateLimit.ExtractorFunc }}"
|
extractorFunc = "{{ $rateLimit.ExtractorFunc }}"
|
||||||
[frontends."{{ $frontendName }}".rateLimit.rateSet]
|
[frontends."{{ $frontendName }}".rateLimit.rateSet]
|
||||||
{{ range $limitName, $limit := $rateLimit.RateSet }}
|
{{ range $limitName, $limit := $rateLimit.RateSet }}
|
||||||
[frontends."{{ $frontendName }}".rateLimit.rateSet.{{ $limitName }}]
|
[frontends."{{ $frontendName }}".rateLimit.rateSet."{{ $limitName }}"]
|
||||||
period = "{{ $limit.Period }}"
|
period = "{{ $limit.Period }}"
|
||||||
average = {{ $limit.Average }}
|
average = {{ $limit.Average }}
|
||||||
burst = {{ $limit.Burst }}
|
burst = {{ $limit.Burst }}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
{{ $app := index $tasks 0 }}
|
{{ $app := index $tasks 0 }}
|
||||||
{{ $backendName := getBackendName $app }}
|
{{ $backendName := getBackendName $app }}
|
||||||
|
|
||||||
[backends.backend-{{ $backendName }}]
|
[backends."backend-{{ $backendName }}"]
|
||||||
|
|
||||||
{{ $circuitBreaker := getCircuitBreaker $app }}
|
{{ $circuitBreaker := getCircuitBreaker $app }}
|
||||||
{{if $circuitBreaker }}
|
{{if $circuitBreaker }}
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
|
|
||||||
{{ $healthCheck := getHealthCheck $app }}
|
{{ $healthCheck := getHealthCheck $app }}
|
||||||
{{if $healthCheck }}
|
{{if $healthCheck }}
|
||||||
[backends.backend-{{ $backendName }}.healthCheck]
|
[backends."backend-{{ $backendName }}".healthCheck]
|
||||||
path = "{{ $healthCheck.Path }}"
|
path = "{{ $healthCheck.Path }}"
|
||||||
port = {{ $healthCheck.Port }}
|
port = {{ $healthCheck.Port }}
|
||||||
interval = "{{ $healthCheck.Interval }}"
|
interval = "{{ $healthCheck.Interval }}"
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
|
|
||||||
{{ $buffering := getBuffering $app }}
|
{{ $buffering := getBuffering $app }}
|
||||||
{{if $buffering }}
|
{{if $buffering }}
|
||||||
[backends.backend-{{ $backendName }}.buffering]
|
[backends."backend-{{ $backendName }}".buffering]
|
||||||
maxRequestBodyBytes = {{ $buffering.MaxRequestBodyBytes }}
|
maxRequestBodyBytes = {{ $buffering.MaxRequestBodyBytes }}
|
||||||
memRequestBodyBytes = {{ $buffering.MemRequestBodyBytes }}
|
memRequestBodyBytes = {{ $buffering.MemRequestBodyBytes }}
|
||||||
maxResponseBodyBytes = {{ $buffering.MaxResponseBodyBytes }}
|
maxResponseBodyBytes = {{ $buffering.MaxResponseBodyBytes }}
|
||||||
|
@ -48,7 +48,7 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{range $serverName, $server := getServers $tasks }}
|
{{range $serverName, $server := getServers $tasks }}
|
||||||
[backends.backend-{{ $backendName }}.servers.{{ $serverName }}]
|
[backends."backend-{{ $backendName }}".servers."{{ $serverName }}"]
|
||||||
url = "{{ $server.URL }}"
|
url = "{{ $server.URL }}"
|
||||||
weight = {{ $server.Weight }}
|
weight = {{ $server.Weight }}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -59,7 +59,7 @@
|
||||||
{{ $app := index $tasks 0 }}
|
{{ $app := index $tasks 0 }}
|
||||||
{{ $frontendName := getFrontEndName $app }}
|
{{ $frontendName := getFrontEndName $app }}
|
||||||
|
|
||||||
[frontends.frontend-{{ $frontendName }}]
|
[frontends."frontend-{{ $frontendName }}"]
|
||||||
backend = "backend-{{ getBackendName $app }}"
|
backend = "backend-{{ getBackendName $app }}"
|
||||||
priority = {{ getPriority $app }}
|
priority = {{ getPriority $app }}
|
||||||
passHostHeader = {{ getPassHostHeader $app }}
|
passHostHeader = {{ getPassHostHeader $app }}
|
||||||
|
@ -93,7 +93,7 @@
|
||||||
{{if $errorPages }}
|
{{if $errorPages }}
|
||||||
[frontends."frontend-{{ $frontendName }}".errors]
|
[frontends."frontend-{{ $frontendName }}".errors]
|
||||||
{{range $pageName, $page := $errorPages }}
|
{{range $pageName, $page := $errorPages }}
|
||||||
[frontends."frontend-{{ $frontendName }}".errors.{{ $pageName }}]
|
[frontends."frontend-{{ $frontendName }}".errors."{{ $pageName }}"]
|
||||||
status = [{{range $page.Status }}
|
status = [{{range $page.Status }}
|
||||||
"{{.}}",
|
"{{.}}",
|
||||||
{{end}}]
|
{{end}}]
|
||||||
|
@ -108,7 +108,7 @@
|
||||||
extractorFunc = "{{ $rateLimit.ExtractorFunc }}"
|
extractorFunc = "{{ $rateLimit.ExtractorFunc }}"
|
||||||
[frontends."frontend-{{ $frontendName }}".rateLimit.rateSet]
|
[frontends."frontend-{{ $frontendName }}".rateLimit.rateSet]
|
||||||
{{ range $limitName, $limit := $rateLimit.RateSet }}
|
{{ range $limitName, $limit := $rateLimit.RateSet }}
|
||||||
[frontends."frontend-{{ $frontendName }}".rateLimit.rateSet.{{ $limitName }}]
|
[frontends."frontend-{{ $frontendName }}".rateLimit.rateSet."{{ $limitName }}"]
|
||||||
period = "{{ $limit.Period }}"
|
period = "{{ $limit.Period }}"
|
||||||
average = {{ $limit.Average }}
|
average = {{ $limit.Average }}
|
||||||
burst = {{ $limit.Burst }}
|
burst = {{ $limit.Burst }}
|
||||||
|
@ -169,7 +169,7 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
[frontends.frontend-{{ $frontendName }}.routes.route-host-{{ $frontendName }}]
|
[frontends."frontend-{{ $frontendName }}".routes."route-host-{{ $frontendName }}"]
|
||||||
rule = "{{ getFrontendRule $app }}"
|
rule = "{{ getFrontendRule $app }}"
|
||||||
|
|
||||||
{{end}}
|
{{end}}
|
|
@ -2,7 +2,7 @@
|
||||||
[backends]
|
[backends]
|
||||||
{{range $backendName, $backend := .Backends }}
|
{{range $backendName, $backend := .Backends }}
|
||||||
|
|
||||||
[backends.backend-{{ $backendName }}]
|
[backends."backend-{{ $backendName }}"]
|
||||||
|
|
||||||
{{ $circuitBreaker := getCircuitBreaker $backend }}
|
{{ $circuitBreaker := getCircuitBreaker $backend }}
|
||||||
{{if $circuitBreaker }}
|
{{if $circuitBreaker }}
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
{{ $healthCheck := getHealthCheck $backend }}
|
{{ $healthCheck := getHealthCheck $backend }}
|
||||||
{{if $healthCheck }}
|
{{if $healthCheck }}
|
||||||
[backends.backend-{{ $backendName }}.healthCheck]
|
[backends."backend-{{ $backendName }}".healthCheck]
|
||||||
path = "{{ $healthCheck.Path }}"
|
path = "{{ $healthCheck.Path }}"
|
||||||
port = {{ $healthCheck.Port }}
|
port = {{ $healthCheck.Port }}
|
||||||
interval = "{{ $healthCheck.Interval }}"
|
interval = "{{ $healthCheck.Interval }}"
|
||||||
|
@ -47,7 +47,7 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{range $serverName, $server := getServers $backend}}
|
{{range $serverName, $server := getServers $backend}}
|
||||||
[backends.backend-{{ $backendName }}.servers.{{ $serverName }}]
|
[backends."backend-{{ $backendName }}".servers."{{ $serverName }}"]
|
||||||
url = "{{ $server.URL }}"
|
url = "{{ $server.URL }}"
|
||||||
weight = {{ $server.Weight }}
|
weight = {{ $server.Weight }}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -91,7 +91,7 @@
|
||||||
{{if $errorPages }}
|
{{if $errorPages }}
|
||||||
[frontends."frontend-{{ $frontendName }}".errors]
|
[frontends."frontend-{{ $frontendName }}".errors]
|
||||||
{{range $pageName, $page := $errorPages }}
|
{{range $pageName, $page := $errorPages }}
|
||||||
[frontends."frontend-{{ $frontendName }}".errors.{{ $pageName }}]
|
[frontends."frontend-{{ $frontendName }}".errors."{{ $pageName }}"]
|
||||||
status = [{{range $page.Status }}
|
status = [{{range $page.Status }}
|
||||||
"{{.}}",
|
"{{.}}",
|
||||||
{{end}}]
|
{{end}}]
|
||||||
|
@ -106,7 +106,7 @@
|
||||||
extractorFunc = "{{ $rateLimit.ExtractorFunc }}"
|
extractorFunc = "{{ $rateLimit.ExtractorFunc }}"
|
||||||
[frontends."frontend-{{ $frontendName }}".rateLimit.rateSet]
|
[frontends."frontend-{{ $frontendName }}".rateLimit.rateSet]
|
||||||
{{ range $limitName, $limit := $rateLimit.RateSet }}
|
{{ range $limitName, $limit := $rateLimit.RateSet }}
|
||||||
[frontends."frontend-{{ $frontendName }}".rateLimit.rateSet.{{ $limitName }}]
|
[frontends."frontend-{{ $frontendName }}".rateLimit.rateSet."{{ $limitName }}"]
|
||||||
period = "{{ $limit.Period }}"
|
period = "{{ $limit.Period }}"
|
||||||
average = {{ $limit.Average }}
|
average = {{ $limit.Average }}
|
||||||
burst = {{ $limit.Burst }}
|
burst = {{ $limit.Burst }}
|
||||||
|
|
Loading…
Reference in a new issue