Add ttyds to Traefik

This commit is contained in:
Mo 2023-08-13 14:40:05 +02:00
parent c7f0e10d00
commit 511e844e3c

View file

@ -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 }}