fix: don't enable SMTP by default

See #8
This commit is contained in:
decentral1se 2025-04-22 23:48:12 +02:00
parent 0c8a4ddc50
commit 426c0c026f
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
5 changed files with 21 additions and 1 deletions

View File

@ -25,6 +25,7 @@ TX="Europe/Berlin"
## SMTP settings
#COMPOSE_FILE="$COMPOSE_FILE:compose.smtp.yml"
#SECRET_SMTP_PASSWORD_VERSION=v1
#SMTP_ENABLED=1
#SMTP_FROM=noreply@example.com
#SMTP_USERNAME=noreply@example.com
#SMTP_HOST=mail.example.com

View File

@ -6,6 +6,7 @@ services:
secrets:
- smtp_password
environment:
- "SMTP_ENABLED"
- "SMTP_PASSWORD_FILE=/run/secrets/smtp_password"
- "SMTP_FROM"
- "SMTP_USERNAME"

View File

@ -42,7 +42,7 @@ services:
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "coop-cloud.${STACK_NAME}.version=1.1.0+1.33.2"
- "coop-cloud.${STACK_NAME}.version=2.0.0+1.33.2"
- "backupbot.backup=true"
- "backupbot.backup.path=/data"

View File

@ -47,7 +47,10 @@ if [ -n "${MYSQL_HOST}" ]; then
fi
file_env "ADMIN_TOKEN"
{{ if eq (env "SMTP_ENABLED") "1" }}
file_env "SMTP_PASSWORD"
{{ end }}
# remove world permissions on data
chmod -R o= /data

15
release/2.0.0+1.33.2 Normal file
View File

@ -0,0 +1,15 @@
=== SMTP SETTINGS ===
This release contains a *breaking change* if you use SMTP with vaultwarden.
See https://git.coopcloud.tech/coop-cloud/vaultwarden/pulls/9 for more.
TLDR; Please add `SMTP_ENABLED=1` to your .env to continue using SMTP.
=== PERMISSIONS ===
Previously, the data directory including the main private key had read
permissions enabled for all host users. This release fixes that. Please review
your Vaultwarden keys if other users on your Co-op Cloud host may have had
access to these files.
See https://git.coopcloud.tech/coop-cloud/vaultwarden/pulls/7 for more.