Fix redirect loop: remove /login /signup from Traefik backend routes
This commit is contained in:
parent
616ab44414
commit
f822b93e2e
|
|
@ -52,12 +52,12 @@ services:
|
||||||
- "traefik.http.routers.spawner-api.service=spawner-api-service"
|
- "traefik.http.routers.spawner-api.service=spawner-api-service"
|
||||||
- "traefik.http.services.spawner-api-service.loadbalancer.server.port=5000"
|
- "traefik.http.services.spawner-api-service.loadbalancer.server.port=5000"
|
||||||
|
|
||||||
# Legacy-Router fuer alte Flask-Templates (niedrige Prioritaet)
|
# Health-Router (nur fuer /health Endpoint)
|
||||||
- "traefik.http.routers.spawner-legacy.rule=Host(`${SPAWNER_SUBDOMAIN:-coder}.${BASE_DOMAIN}`) && (PathPrefix(`/login`) || PathPrefix(`/signup`) || PathPrefix(`/logout`) || PathPrefix(`/dashboard`) || PathPrefix(`/container`) || PathPrefix(`/health`))"
|
- "traefik.http.routers.spawner-health.rule=Host(`${SPAWNER_SUBDOMAIN:-coder}.${BASE_DOMAIN}`) && PathPrefix(`/health`)"
|
||||||
- "traefik.http.routers.spawner-legacy.entrypoints=${TRAEFIK_ENTRYPOINT:-websecure}"
|
- "traefik.http.routers.spawner-health.entrypoints=${TRAEFIK_ENTRYPOINT:-websecure}"
|
||||||
- "traefik.http.routers.spawner-legacy.tls.certresolver=${TRAEFIK_CERTRESOLVER:-lets-encrypt}"
|
- "traefik.http.routers.spawner-health.tls.certresolver=${TRAEFIK_CERTRESOLVER:-lets-encrypt}"
|
||||||
- "traefik.http.routers.spawner-legacy.priority=100"
|
- "traefik.http.routers.spawner-health.priority=100"
|
||||||
- "traefik.http.routers.spawner-legacy.service=spawner-api-service"
|
- "traefik.http.routers.spawner-health.service=spawner-api-service"
|
||||||
|
|
||||||
# Metadata
|
# Metadata
|
||||||
- "spawner.managed=true"
|
- "spawner.managed=true"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user