Set SMTP for authelia

This commit is contained in:
Colin Hebert
2023-01-16 12:07:25 +01:00
parent 5be7c72224
commit 0d2d45188f
3 changed files with 14 additions and 14 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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=