Skip to content
Discussion options

You must be logged in to vote

the issue is that traefik cant find the middleware because its defined on a different container. when you define middleware labels on traefik container itself, it needs traefik.enable=true on that container too.

try this - move the middleware definition to anubis container:

anubis:
  labels:
    - "traefik.enable=true"
    - "traefik.http.middlewares.anubis.forwardauth.address=http://anubis:8080/.within.website/x/anubis/api/check"
    - "traefik.http.middlewares.anubis.forwardauth.trustForwardHeader=true"

the middleware gets registered from whatever container has traefik.enable=true. since traefik itself doesnt have that label, the middleware definition on it gets ignored.

alternatively a…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Nyanchovy
Comment options

Answer selected by Nyanchovy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants