25 lines
807 B
YAML
25 lines
807 B
YAML
{{
|
|
$services := list
|
|
(list "minio-console" "minio-console.home.finn.io" "http://minio:9001")
|
|
(list "minio" "storage.home.finn.io" "http://minio:9000")
|
|
(list "jellyfin" "jellyfin.janky.solutions" "http://jellyfin:8096")
|
|
(list "dns" "dns.janky.solutions" "http://dns:9191")
|
|
(list "dns443" "dns.janky.solutions:443" "http://dns:9191")
|
|
(list "matrix" "matrix.janky.solutions" "http://matrix:8008")
|
|
}}
|
|
http:
|
|
routers:
|
|
{{range $_, $service := $services}}
|
|
{{index $service 0}}:
|
|
entryPoints:
|
|
- websecure
|
|
rule: "Host(`{{ index $service 1 }}`)"
|
|
service: {{ index $service 0 }}
|
|
{{end}}
|
|
services:
|
|
{{range $_, $service := $services}}
|
|
{{index $service 0}}:
|
|
loadBalancer:
|
|
servers:
|
|
- url: "{{index $service 2}}"
|
|
{{end}}
|