Compare commits
6 Commits
8246bff8a1
...
backup-ori
| Author | SHA1 | Date | |
|---|---|---|---|
| 624be31e57 | |||
| 5c7adf4980 | |||
| 02effe5d7a | |||
|
|
184d92bf9a | ||
|
|
117a0c51ac | ||
|
|
ac9091e32f |
@@ -37,6 +37,7 @@ services:
|
|||||||
|
|
||||||
AUTHENTIK_REDIS__HOST: ${AUTHENTIK_REDIS_HOST}
|
AUTHENTIK_REDIS__HOST: ${AUTHENTIK_REDIS_HOST}
|
||||||
|
|
||||||
|
# Bootstrap inicial (primera vez)
|
||||||
AUTHENTIK_BOOTSTRAP_EMAIL: ${AUTHENTIK_BOOTSTRAP_EMAIL}
|
AUTHENTIK_BOOTSTRAP_EMAIL: ${AUTHENTIK_BOOTSTRAP_EMAIL}
|
||||||
AUTHENTIK_BOOTSTRAP_PASSWORD: ${AUTHENTIK_BOOTSTRAP_PASSWORD}
|
AUTHENTIK_BOOTSTRAP_PASSWORD: ${AUTHENTIK_BOOTSTRAP_PASSWORD}
|
||||||
AUTHENTIK_BOOTSTRAP_TOKEN: ${AUTHENTIK_BOOTSTRAP_TOKEN}
|
AUTHENTIK_BOOTSTRAP_TOKEN: ${AUTHENTIK_BOOTSTRAP_TOKEN}
|
||||||
@@ -56,37 +57,24 @@ services:
|
|||||||
traefik.enable: "true"
|
traefik.enable: "true"
|
||||||
traefik.docker.network: "${TRAEFIK_DOCKER_NETWORK}"
|
traefik.docker.network: "${TRAEFIK_DOCKER_NETWORK}"
|
||||||
|
|
||||||
# Service Authentik (panel + endpoints)
|
# Router del panel de Authentik
|
||||||
traefik.http.services.authentik.loadbalancer.server.port: "${AUTHENTIK_HTTP_PORT}"
|
|
||||||
|
|
||||||
# Panel Authentik (auth.thehomelesssherlock.com)
|
|
||||||
traefik.http.routers.authentik.rule: "Host(`${AUTHENTIK_DOMAIN}`)"
|
traefik.http.routers.authentik.rule: "Host(`${AUTHENTIK_DOMAIN}`)"
|
||||||
traefik.http.routers.authentik.entrypoints: "${TRAEFIK_ENTRYPOINT_SECURE}"
|
traefik.http.routers.authentik.entrypoints: "${TRAEFIK_ENTRYPOINT_SECURE}"
|
||||||
traefik.http.routers.authentik.tls: "true"
|
|
||||||
traefik.http.routers.authentik.tls.certresolver: "${TRAEFIK_CERTRESOLVER}"
|
traefik.http.routers.authentik.tls.certresolver: "${TRAEFIK_CERTRESOLVER}"
|
||||||
traefik.http.routers.authentik.service: "authentik"
|
traefik.http.services.authentik.loadbalancer.server.port: "${AUTHENTIK_HTTP_PORT}"
|
||||||
|
|
||||||
# Middleware forwardAuth (para proteger otros servicios)
|
# Middleware de forwardAuth que usaremos en Portainer, Pi-hole, etc.
|
||||||
traefik.http.middlewares.authentik.forwardauth.address: "http://authentik-server:${AUTHENTIK_HTTP_PORT}/outpost.goauthentik.io/auth/traefik"
|
traefik.http.middlewares.authentik.forwardauth.address: "http://authentik-server:${AUTHENTIK_HTTP_PORT}/outpost.goauthentik.io/auth/traefik"
|
||||||
traefik.http.middlewares.authentik.forwardauth.trustForwardHeader: "true"
|
traefik.http.middlewares.authentik.forwardauth.trustForwardHeader: "true"
|
||||||
traefik.http.middlewares.authentik.forwardauth.authResponseHeaders: "X-Authentik-Username,X-Authentik-Groups,X-Authentik-Email,X-Authentik-Uid,X-Authentik-Jwt"
|
traefik.http.middlewares.authentik.forwardauth.authResponseHeaders: "X-Authentik-Username,X-Authentik-Groups,X-Authentik-Email,X-Authentik-Uid,X-Authentik-Jwt"
|
||||||
|
|
||||||
# Callback del outpost en gitea hacia Authentik (ya lo tenías)
|
# Callback del outpost en gitea hacia Authentik
|
||||||
traefik.http.routers.authentik-outpost-gitea.rule: "Host(`${GITEA_DOMAIN}`) && PathPrefix(`/outpost.goauthentik.io/`)"
|
traefik.http.routers.authentik-outpost-gitea.rule: "Host(`${GITEA_DOMAIN}`) && PathPrefix(`/outpost.goauthentik.io/`)"
|
||||||
traefik.http.routers.authentik-outpost-gitea.entrypoints: "${TRAEFIK_ENTRYPOINT_SECURE}"
|
traefik.http.routers.authentik-outpost-gitea.entrypoints: "${TRAEFIK_ENTRYPOINT_SECURE}"
|
||||||
traefik.http.routers.authentik-outpost-gitea.tls: "true"
|
|
||||||
traefik.http.routers.authentik-outpost-gitea.tls.certresolver: "${TRAEFIK_CERTRESOLVER}"
|
traefik.http.routers.authentik-outpost-gitea.tls.certresolver: "${TRAEFIK_CERTRESOLVER}"
|
||||||
traefik.http.routers.authentik-outpost-gitea.service: "authentik"
|
traefik.http.routers.authentik-outpost-gitea.service: "authentik"
|
||||||
traefik.http.routers.authentik-outpost-gitea.priority: "50"
|
traefik.http.routers.authentik-outpost-gitea.priority: "50"
|
||||||
|
|
||||||
# ✅ CORRECCIÓN: Callback del outpost para tu WEB (www.thehomelesssherlock.com)
|
|
||||||
traefik.http.routers.authentik-outpost-ths.rule: "Host(`${THS_DOMAIN}`) && PathPrefix(`/outpost.goauthentik.io/`)"
|
|
||||||
traefik.http.routers.authentik-outpost-ths.entrypoints: "${TRAEFIK_ENTRYPOINT_SECURE}"
|
|
||||||
traefik.http.routers.authentik-outpost-ths.tls: "true"
|
|
||||||
traefik.http.routers.authentik-outpost-ths.tls.certresolver: "${TRAEFIK_CERTRESOLVER}"
|
|
||||||
traefik.http.routers.authentik-outpost-ths.service: "authentik"
|
|
||||||
traefik.http.routers.authentik-outpost-ths.priority: "250"
|
|
||||||
|
|
||||||
authentik-worker:
|
authentik-worker:
|
||||||
image: ${AUTHENTIK_IMAGE}
|
image: ${AUTHENTIK_IMAGE}
|
||||||
container_name: authentik-worker
|
container_name: authentik-worker
|
||||||
@@ -105,7 +93,6 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- authentik-postgres
|
- authentik-postgres
|
||||||
- authentik-redis
|
- authentik-redis
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
- authentik_internal
|
- authentik_internal
|
||||||
|
|
||||||
@@ -114,3 +101,4 @@ networks:
|
|||||||
external: true
|
external: true
|
||||||
authentik_internal:
|
authentik_internal:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user