Add ttyds to Traefik
This commit is contained in:
parent
c7f0e10d00
commit
511e844e3c
1 changed files with 15 additions and 0 deletions
|
@ -123,6 +123,15 @@ http:
|
|||
to_oxitraffic_corrode_dev:
|
||||
rule: Host(`oxitraffic-corrode-dev.mo8it.com`)
|
||||
service: oxitraffic_corrode_dev
|
||||
{{ $n_ttyds := 28 }}
|
||||
{{ range $index, $num := until $n_ttyds }}
|
||||
to_ttyd{{ $num }}:
|
||||
rule: Host(`ttyd{{ $num }}.mo8it.com`)
|
||||
service: ttyd{{ $num }}
|
||||
tls:
|
||||
certResolver: le
|
||||
{{ end }}
|
||||
|
||||
|
||||
services:
|
||||
nginx:
|
||||
|
@ -197,3 +206,9 @@ http:
|
|||
loadBalancer:
|
||||
servers:
|
||||
- url: http://oxitraffic-corrode-dev
|
||||
{{ range $index, $num := until $n_ttyds }}
|
||||
ttyd{{ $num }}:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: http://ttyd{{ $num }}:7681
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue