From f62f7dbae4a7c3a3a373ac3b2572679597924d7c Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Mon, 17 Oct 2022 11:21:08 -0700 Subject: [PATCH] Fix middleware application --- homelab/server/config/traefik/config/traefik_api.yaml | 4 ++-- homelab/server/config/traefik/docker-compose.yml | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/homelab/server/config/traefik/config/traefik_api.yaml b/homelab/server/config/traefik/config/traefik_api.yaml index 6481be26..1523ae8c 100644 --- a/homelab/server/config/traefik/config/traefik_api.yaml +++ b/homelab/server/config/traefik/config/traefik_api.yaml @@ -3,8 +3,8 @@ http: api: rule: "Host(`traefik.jafner.net`)" entryPoints: "websecure" - #middlewares: - # - "authentik@file" + middlewares: + - "traefik-forward-auth@file" service: "api@internal" tls: certResolver: "lets-encrypt" \ No newline at end of file diff --git a/homelab/server/config/traefik/docker-compose.yml b/homelab/server/config/traefik/docker-compose.yml index 1ea620dd..679a4ed6 100644 --- a/homelab/server/config/traefik/docker-compose.yml +++ b/homelab/server/config/traefik/docker-compose.yml @@ -24,8 +24,6 @@ services: - ./traefik.yaml:/traefik.yaml - ./config:/config - $DOCKER_DATA/acme.json:/acme.json - labels: - - traefik.http.routers.api.middlewares=traefik-forward-auth@file networks: web: