From 0d2d45188fd0cb9546753b158627b11c9552ccbe Mon Sep 17 00:00:00 2001 From: Colin Hebert Date: Mon, 16 Jan 2023 12:07:25 +0100 Subject: [PATCH] Set SMTP for authelia --- authentication.docker-compose.yml | 9 +++++++++ docker/configs/authelia/configuration.yml | 14 -------------- nas-compose.env | 5 +++++ 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/authentication.docker-compose.yml b/authentication.docker-compose.yml index 90828d1..8f11c98 100644 --- a/authentication.docker-compose.yml +++ b/authentication.docker-compose.yml @@ -9,6 +9,12 @@ services: AUTHELIA_DEFAULT_REDIRECTION_URL: "" #Heimdall AUTHELIA_JWT_SECRET_FILE: /run/secrets/jwt_secret AUTHELIA_STORAGE_ENCRYPTION_KEY_FILE: /run/secrets/storage_key + AUTHELIA_NOTIFIER_SMTP_HOST: ${NASCOMPOSE_AUTHELIA_SMTP_HOST?} + AUTHELIA_NOTIFIER_SMTP_PORT: ${NASCOMPOSE_AUTHELIA_SMTP_PORT?} + AUTHELIA_NOTIFIER_SMTP_USERNAME: ${NASCOMPOSE_AUTHELIA_SMTP_USERNAME?} + AUTHELIA_NOTIFIER_SMTP_PASSWORD_FILE: /run/secrets/smtp_password + AUTHELIA_NOTIFIER_SMTP_SENDER: ${NASCOMPOSE_AUTHELIA_SMTP_SENDER?} + networks: - traefik volumes: @@ -23,6 +29,7 @@ services: secrets: - jwt_secret - storage_key + - smtp_password labels: traefik.enable: true @@ -50,3 +57,5 @@ secrets: file: ${NASCOMPOSE_SERVICES?}/secrets/authelia/jwt_secret storage_key: file: ${NASCOMPOSE_SERVICES?}/secrets/authelia/storage_key + smtp_password: + file: ${NASCOMPOSE_SERVICES?}/secrets/authelia/smtp_password diff --git a/docker/configs/authelia/configuration.yml b/docker/configs/authelia/configuration.yml index df76bd1..58cd0ec 100644 --- a/docker/configs/authelia/configuration.yml +++ b/docker/configs/authelia/configuration.yml @@ -19,17 +19,3 @@ storage: local: ## Path to the SQLite3 Database. path: /config/db.sqlite3 - -## -## Notification Provider -## -## Notifications are sent to users when they require a password reset, a Webauthn registration or a TOTP registration. -## The available providers are: filesystem, smtp. You must use only one of these providers. -notifier: - ## - ## File System (Notification Provider) - ## - ## Important: Kubernetes (or HA) users must read https://www.authelia.com/t/statelessness - ## - filesystem: - filename: /config/notification.txt diff --git a/nas-compose.env b/nas-compose.env index 2bcc775..2369cea 100644 --- a/nas-compose.env +++ b/nas-compose.env @@ -16,6 +16,11 @@ NASCOMPOSE_MACVLAN_PLEX_IP= NASCOMPOSE_TRAEFIK_DOMAINS= +NASCOMPOSE_AUTHELIA_SMTP_HOST= +NASCOMPOSE_AUTHELIA_SMTP_PORT= +NASCOMPOSE_AUTHELIA_SMTP_USERNAME= +NASCOMPOSE_AUTHELIA_SMTP_SENDER= + NASCOMPOSE_DUCKDNS_DOMAIN= NASCOMPOSE_TRANSMISSION_VPNREGION=