fix: don't enable SMTP by default #9

Merged
decentral1se merged 1 commits from smtp-not-enabled-by-default into main 2025-04-24 08:11:44 +00:00
5 changed files with 21 additions and 1 deletions

View File

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

View File

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

View File

@ -42,7 +42,7 @@ services:
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)" - "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure" - "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}" - "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=true"
- "backupbot.backup.path=/data" - "backupbot.backup.path=/data"

View File

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