Compare commits

..

2 Commits

Author SHA1 Message Date
a00c7deb2c chore: publish 6.2.0+2024.4.2 release
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is passing
2024-06-10 14:31:56 +02:00
c1f0358f29 add admin mail env
All checks were successful
continuous-integration/drone/push Build is passing
2024-06-10 14:23:11 +02:00
3 changed files with 5 additions and 20 deletions

View File

@ -17,6 +17,9 @@ AUTHENTIK_LOG_LEVEL=info
## Outpost Integration
# COMPOSE_FILE="$COMPOSE_FILE:compose.outposts.yml"
## ADMIN
AUTHENTIK_BOOTSTRAP_EMAIL=admin@example.com
## EMAIL
AUTHENTIK_EMAIL__HOST=smtp
AUTHENTIK_EMAIL__PORT=587

View File

@ -21,6 +21,7 @@ x-env: &env
- AUTHENTIK_COLOR_BACKGROUND_LIGHT
- AUTHENTIK_FOOTER_LINKS
- AUTHENTIK_IMPERSONATION
- AUTHENTIK_BOOTSTRAP_EMAIL
- WELCOME_MESSAGE
- DEFAULT_LANGUAGE
- EMAIL_SUBJECT
@ -73,7 +74,7 @@ services:
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
- "traefik.http.middlewares.${STACK_NAME}-frameOptions.headers.customFrameOptionsValue=SAMEORIGIN"
- "traefik.http.middlewares.${STACK_NAME}-frameOptions.headers.contentSecurityPolicy=frame-ancestors ${X_FRAME_OPTIONS_ALLOW_FROM}"
- "coop-cloud.${STACK_NAME}.version=6.1.1+2024.4.2"
- "coop-cloud.${STACK_NAME}.version=6.2.0+2024.4.2"
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}"
worker:

View File

@ -1,19 +0,0 @@
model_actions = ["model_deleted"]
model_app = "authentik_core"
model_name = "user"
event = request.context.get("event", None)
if not event:
ak_logger.info("delete_user: No event")
return False
if event.action not in model_actions:
ak_logger.info("delete_user: Non-matching action")
return False
if (
event.context["model"]["app"] != model_app
or event.context["model"]["model_name"] != model_name
):
ak_logger.info("delete_user: Invalid model")
return False
ak_logger.info(f'model: {event.context["model"]}')