mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-20 04:19:18 +00:00
ghost: ability to provide a custom mail name
This commit is contained in:
parent
34a95d56b3
commit
ce8722644f
@ -15,6 +15,8 @@ ENV GHOST_NODE_VERSION_CHECK=false \
|
||||
SMTP_PASS=12345 \
|
||||
SMTP_USER=user \
|
||||
SMTP_PORT=666 \
|
||||
SMTP_SENDER_MAIL=user@domain.tld \
|
||||
SMTP_SENDER_NAME=Ghost \
|
||||
ENABLE_ISSO=False \
|
||||
ISSO_HOST=isso.domain.tld \
|
||||
ISSO_AVATAR=false \
|
||||
|
@ -15,7 +15,9 @@ if [ "$CUSTOM_SMTP" == "True" ]; then
|
||||
sed -i -e "s/<HOST>/$SMTP_HOST/g" \
|
||||
-e "s/<PORT>/$SMTP_PORT/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
|
||||
|
||||
if [ ! -d /ghost/content/themes/casper ]; then
|
||||
|
@ -1,6 +1,7 @@
|
||||
|
||||
mail: {
|
||||
transport: 'SMTP',
|
||||
from: '"<SENDER_NAME>" <<SENDER_MAIL>>',
|
||||
options: {
|
||||
host: '<HOST>',
|
||||
port: '<PORT>',
|
||||
|
Loading…
x
Reference in New Issue
Block a user