feat(consulcatalog): add frontend redirect tags.
This commit is contained in:
parent
97ce77169a
commit
170fc13e02
3 changed files with 90 additions and 0 deletions
|
@ -67,6 +67,14 @@
|
|||
"{{.}}",
|
||||
{{end}}]
|
||||
|
||||
{{ $redirect := getRedirect $service.Attributes }}
|
||||
{{if $redirect }}
|
||||
[frontends."frontend-{{ $service.ServiceName }}".redirect]
|
||||
entryPoint = "{{ $redirect.EntryPoint }}"
|
||||
regex = "{{ $redirect.Regex }}"
|
||||
replacement = "{{ $redirect.Replacement }}"
|
||||
{{end}}
|
||||
|
||||
[frontends."frontend-{{$service.ServiceName}}".routes."route-host-{{$service.ServiceName}}"]
|
||||
rule = "{{ getFrontendRule $service }}"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue