feat: smtp port #5

Open
fauno wants to merge 2 commits from smtp-port into main
4 changed files with 4 additions and 2 deletions

View File

@ -14,4 +14,5 @@ SECRET_SMTP_PASSWORD_VERSION=v1
SYMFONY__ENV__FOSUSER_REGISTRATION=true
SYMFONY__ENV__MAILER_HOST=127.0.0.1
SYMFONY__ENV__MAILER_USER=~
SYMFONY__ENV__MAILER_PORT=465
SYMFONY__ENV__FROM_EMAIL=

View File

@ -1 +1 @@
export ENTRYPOINT_VERSION=v4
export ENTRYPOINT_VERSION=v5

View File

@ -16,6 +16,7 @@ services:
- SYMFONY__ENV__DATABASE_CHARSET=utf8mb4
- SYMFONY__ENV__MAILER_HOST
- SYMFONY__ENV__MAILER_USER
- SYMFONY__ENV__MAILER_PORT
- SYMFONY__ENV__MAILER_PASSWORD_FILE=/run/secrets/smtp_password
- SYMFONY__ENV__FROM_EMAIL
- SYMFONY__ENV__DOMAIN_NAME=https://${DOMAIN}

View File

@ -3,7 +3,7 @@
export SYMFONY__ENV__DATABASE_PASSWORD=$(cat $SYMFONY__ENV__DATABASE_PASSWORD_FILE)
export SYMFONY__ENV__SECRET=$(cat $SYMFONY__ENV__SECRET_FILE)
export SYMFONY__ENV__MAILER_DSN=smtp://${SYMFONY__ENV__MAILER_USER}:$(cat ${SYMFONY__ENV__MAILER_PASSWORD_FILE})@${SYMFONY__ENV__MAILER_HOST}:465
export SYMFONY__ENV__MAILER_DSN=smtp://${SYMFONY__ENV__MAILER_USER}:$(cat ${SYMFONY__ENV__MAILER_PASSWORD_FILE})@${SYMFONY__ENV__MAILER_HOST}:${SYMFONY__ENV__MAILER_PORT:-465}
fauno marked this conversation as resolved Outdated

Could we maybe do ${SYMFONY__ENV__MAILER_PORT:-465} for backwards compatibility?

Could we maybe do `${SYMFONY__ENV__MAILER_PORT:-465}` for backwards compatibility?
# https://github.com/wallabag/docker/blob/master/root/entrypoint.sh
sh -c "/entrypoint.sh migrate"