Se traefik with no auth, authenticate heimdall

This commit is contained in:
Colin Hebert
2023-01-16 17:47:04 +01:00
parent 501c1ed259
commit 6fd004fce5
2 changed files with 5 additions and 1 deletions

View File

@@ -1,7 +1,10 @@
http: http:
routers: routers:
traefik-internal:
rule: Host(`traefik`)
service: api@internal
traefik: traefik:
rule: '{{ $s := "traefik" }}{{ range $i, $d := splitList "," (env `NASCOMPOSE_TRAEFIK_DOMAINS`) }}{{ if $i }} || {{end}}Host(`{{ $s }}.{{ $d }}`){{ end }} || {{ $s }}' rule: '{{ $s := "traefik" }}{{ range $i, $d := splitList "," (env `NASCOMPOSE_TRAEFIK_DOMAINS`) }}{{ if $i }} || {{end}}Host(`{{ $s }}.{{ $d }}`){{ end }}'
service: api@internal service: api@internal
middlewares: middlewares:
- authelia@file - authelia@file

View File

@@ -49,6 +49,7 @@ services:
restart: unless-stopped restart: unless-stopped
labels: labels:
traefik.enable: true traefik.enable: true
traefik.http.routers.heimdall.middlewares: authelia-basic@file
networks: networks:
docker: docker: