fix: working SMTP setup

This commit is contained in:
decentral1se 2025-06-10 12:15:54 +02:00
parent 1f77033d55
commit 5cebd16837
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
4 changed files with 9 additions and 5 deletions

View File

@ -17,5 +17,7 @@ SECRET_HQL_API_VERSION=v1
#COMPOSE_FILE="$COMPOSE_FILE:compose.smtp.yml"
#SMTP_ENABLED=1
#EMAIL_SUB_PREFIX="Rauthy IAM"
#SMTP_URL=
#SMTP_FROM=
#SMTP_USERNAME=
#SECRET_SMTP_PASSWORD_VERSION=v1

View File

@ -1 +1 @@
export RAUTHY_CFG_VERSION=v1
export RAUTHY_CFG_VERSION=v2

View File

@ -5,7 +5,9 @@ services:
app:
environment:
- EMAIL_SUB_PREFIX
- SMTP_ENABLED
- SMTP_FROM
- SMTP_URL
- SMTP_USERNAME
secrets:
- smtp_password

View File

@ -615,12 +615,12 @@ EMAIL_SUB_PREFIX="{{ env "EMAIL_SUB_PREFIX" }}"
# TLS fails. It will never allow an unencrypted connection.
# You might want to set `SMTP_DANGER_INSECURE=true` if you
# need this for local dev.
#SMTP_URL=
#SMTP_USERNAME="{{ env "SMTP_USERNAME" }}"
#SMTP_PASSWORD="{{ secret "smtp_password" }}"
SMTP_URL="{{ env "SMTP_URL" }}"
SMTP_USERNAME="{{ env "SMTP_USERNAME" }}"
SMTP_PASSWORD="{{ secret "smtp_password" }}"
# Format: "Rauthy <rauthy@localhost.de>"
# default: "Rauthy <rauthy@localhost.de>"
#SMTP_FROM="{{ env "SMTP_FROM" }}"
SMTP_FROM="{{ env "SMTP_FROM" }}"
# The number of retries that should be done for connecting to
# the given SMTP_URL.