networks: proxy_tier: name: proxy_tier external: true services: authelia: image: authelia/authelia:latest container_name: authelia volumes: - ./config:/config networks: - proxy_tier environment: - TZ=UTC restart: unless-stopped labels: - "traefik.enable=true" # The URL where you will actually log in - "traefik.http.routers.authelia.rule=Host(`auth.quangkhai.ch`)" - "traefik.http.routers.authelia.entrypoints=websecure" - "traefik.http.routers.authelia.tls.certresolver=myresolver" - "traefik.http.services.authelia.loadbalancer.server.port=9091" # --- ADD THESE THREE LINES BELOW --- - "traefik.http.middlewares.authelia-auth.forwardauth.address=http://authelia:9091/api/verify?rd=https://auth.quangkhai.ch/" - "traefik.http.middlewares.authelia-auth.forwardauth.trustForwardHeader=true" - "traefik.http.middlewares.authelia-auth.forwardauth.authResponseHeaders=Remote-User,Remote-Groups,Remote-Name,Remote-Email"