forked from Nixius/authelia
1
0
Fork 0

Redirect /login?token= -> /login/reset-password/step2?token= via Traefik

Made-with: Cursor
This commit is contained in:
Leopere 2026-03-04 17:59:15 -05:00
parent c3f8bd3830
commit c613dc0863
Signed by: colin
SSH Key Fingerprint: SHA256:nRPCQTeMFLdGytxRQmPVK9VXY3/ePKQ5lGRyJhT5DY8
1 changed files with 9 additions and 0 deletions

View File

@ -140,6 +140,15 @@ services:
- "traefik.http.routers.authelia.entrypoints=websecure" - "traefik.http.routers.authelia.entrypoints=websecure"
- "traefik.http.routers.authelia.tls=true" - "traefik.http.routers.authelia.tls=true"
- "traefik.http.services.authelia.loadbalancer.server.port=9091" - "traefik.http.services.authelia.loadbalancer.server.port=9091"
- "traefik.http.middlewares.fix-reset-url.redirectregex.regex=^/login\\?token=([^&]+)$$"
- "traefik.http.middlewares.fix-reset-url.redirectregex.replacement=https://bc.a250.ca/login/reset-password/step2?token=$${1}"
- "traefik.http.middlewares.fix-reset-url.redirectregex.permanent=false"
- "traefik.http.routers.authelia-reset.rule=Host(`bc.a250.ca`) && Path(`/login`) && QueryRegexp(`token`, `.+`)"
- "traefik.http.routers.authelia-reset.priority=20"
- "traefik.http.routers.authelia-reset.entrypoints=websecure"
- "traefik.http.routers.authelia-reset.tls=true"
- "traefik.http.routers.authelia-reset.middlewares=fix-reset-url@swarm"
- "traefik.http.routers.authelia-reset.service=authelia"
- "traefik.http.middlewares.authelia-auth.forwardauth.address=http://authelia:9091/login/api/authz/forward-auth?rd=https://bc.a250.ca/login/" - "traefik.http.middlewares.authelia-auth.forwardauth.address=http://authelia:9091/login/api/authz/forward-auth?rd=https://bc.a250.ca/login/"
- "traefik.http.middlewares.authelia-auth.forwardauth.trustForwardHeader=true" - "traefik.http.middlewares.authelia-auth.forwardauth.trustForwardHeader=true"
- "traefik.http.middlewares.authelia-auth.forwardauth.authResponseHeaders=Remote-User,Remote-Groups,Remote-Name,Remote-Email" - "traefik.http.middlewares.authelia-auth.forwardauth.authResponseHeaders=Remote-User,Remote-Groups,Remote-Name,Remote-Email"