fix: Add starttls_only option

This commit is contained in:
3wc
2026-03-22 22:48:26 -04:00
parent cd55026b42
commit a198630456
4 changed files with 6 additions and 1 deletions

View File

@ -5,6 +5,8 @@ ENABLE_BACKUPS=true
COMPOSE_FILE="compose.yml"
# See https://sebadob.github.io/rauthy/config/config.html
ADMIN_EMAIL=admin@example.org
ADMIN_FORCE_MFA=true
@ -25,3 +27,4 @@ SECRET_HQL_API_VERSION=v1
#SMTP_FROM=
#SMTP_USERNAME=
#SECRET_SMTP_PASSWORD_VERSION=v1
#SMTP_STARTTLS_ONLY=true

View File

@ -1,6 +1,6 @@
set -e
export CONFIG_TOML_VERSION=v3
export CONFIG_TOML_VERSION=v4
generate_enc_keys() {
KEY_A="$(openssl rand -base64 32)"

View File

@ -7,6 +7,7 @@ services:
- SMTP_URL
- SMTP_PORT
- SMTP_USERNAME
- SMTP_STARTTLS_ONLY
secrets:
- smtp_password

View File

@ -17,6 +17,7 @@ smtp_url = '{{ env "SMTP_URL" }}'
smtp_username = '{{ env "SMTP_USERNAME" }}'
smtp_password = '{{ secret "smtp_password" }}'
smtp_from = '{{ env "SMTP_FROM" }}'
starttls_only = {{ or (env "SMTP_STARTTLS_ONLY") "false" }}
{{ end }}
[logging]