Fix Traefik network and Authentik middleware configuration
All checks were successful
build-and-deploy / build (push) Successful in 7s
build-and-deploy / deploy (push) Successful in 2s

- Add traefik-network to container networks (CRITICAL FIX)
- Change middleware to authentik-forward-auth@file
- Update traefik.docker.network to traefik-network
- Document network requirements
- Update Authentik configuration instructions
This commit is contained in:
2025-10-12 22:39:49 -06:00
parent 0f7abc6d48
commit fc46ae7a53
3 changed files with 28 additions and 12 deletions

View File

@@ -14,10 +14,11 @@ services:
- NUXT_PUBLIC_APP_URL=${NUXT_PUBLIC_APP_URL}
networks:
- principal
- traefik-network
labels:
# Traefik labels
- "traefik.enable=true"
- "traefik.docker.network=principal"
- "traefik.docker.network=traefik-network"
# HTTP Router
- "traefik.http.routers.${APP_NAME}.rule=Host(`${APP_DOMAIN}`)"
@@ -27,9 +28,8 @@ services:
# Service
- "traefik.http.services.${APP_NAME}.loadbalancer.server.port=3000"
# Middleware chain: Authentik Proxy Outpost + Headers
# IMPORTANTE: Reemplaza 'authentik-outpost@docker' con el nombre de tu proxy outpost
- "traefik.http.routers.${APP_NAME}.middlewares=authentik-outpost@docker,${APP_NAME}-headers"
# Middleware chain: Authentik Forward Auth + Headers
- "traefik.http.routers.${APP_NAME}.middlewares=authentik-forward-auth@file,${APP_NAME}-headers"
# Custom headers middleware
- "traefik.http.middlewares.${APP_NAME}-headers.headers.customrequestheaders.X-Forwarded-Proto=https"
@@ -37,3 +37,5 @@ services:
networks:
principal:
external: true
traefik-network:
external: true