ghost: ability to provide a custom mail name

This commit is contained in:
Wonderfall 2016-04-26 20:06:22 +02:00
parent 34a95d56b3
commit ce8722644f
3 changed files with 6 additions and 1 deletions

View File

@ -15,6 +15,8 @@ ENV GHOST_NODE_VERSION_CHECK=false \
SMTP_PASS=12345 \ SMTP_PASS=12345 \
SMTP_USER=user \ SMTP_USER=user \
SMTP_PORT=666 \ SMTP_PORT=666 \
SMTP_SENDER_MAIL=user@domain.tld \
SMTP_SENDER_NAME=Ghost \
ENABLE_ISSO=False \ ENABLE_ISSO=False \
ISSO_HOST=isso.domain.tld \ ISSO_HOST=isso.domain.tld \
ISSO_AVATAR=false \ ISSO_AVATAR=false \

View File

@ -15,7 +15,9 @@ if [ "$CUSTOM_SMTP" == "True" ]; then
sed -i -e "s/<HOST>/$SMTP_HOST/g" \ sed -i -e "s/<HOST>/$SMTP_HOST/g" \
-e "s/<PORT>/$SMTP_PORT/g" \ -e "s/<PORT>/$SMTP_PORT/g" \
-e "s/<USER>/$SMTP_USER/g" \ -e "s/<USER>/$SMTP_USER/g" \
-e "s/<PASS>/$SMTP_PASS/g" /ghost/config.js -e "s/<PASS>/$SMTP_PASS/g" \
-e "s/<SENDER_MAIL>/$SMTP_SENDER_MAIL/g" \
-e "s/<SENDER_NAME>/$SMTP_SENDER_NAME/g" /ghost/config.js
fi fi
if [ ! -d /ghost/content/themes/casper ]; then if [ ! -d /ghost/content/themes/casper ]; then

View File

@ -1,6 +1,7 @@
mail: { mail: {
transport: 'SMTP', transport: 'SMTP',
from: '"<SENDER_NAME>" <<SENDER_MAIL>>',
options: { options: {
host: '<HOST>', host: '<HOST>',
port: '<PORT>', port: '<PORT>',