mirror of
https://github.com/YunoHost-Apps/ghost_ynh.git
synced 2024-09-03 19:16:02 +02:00
Add email configuration
This commit is contained in:
parent
1f93f154b0
commit
f796e46e38
4 changed files with 7 additions and 2 deletions
|
@ -1 +1,3 @@
|
|||
If you want to use Ghost's CLI, run `sudo yunohost app shell __APP__` in a terminal to load the proper environment.
|
||||
|
||||
Emails such as newsletters will be sent out from `noreply@__DOMAIN__`. Do not change this setting in Ghost's administration interface, it will not work.
|
||||
|
|
|
@ -50,6 +50,7 @@ ram.runtime = "1G"
|
|||
|
||||
[resources.system_user]
|
||||
allow_email = true
|
||||
mail_user = "noreply"
|
||||
|
||||
[resources.install_dir]
|
||||
|
||||
|
|
|
@ -47,7 +47,8 @@ popd
|
|||
# Make sure the configuration is correct
|
||||
pushd $install_dir/ghost
|
||||
ynh_exec_as $app $ynh_node_load_PATH $install_dir/node_modules/ghost-cli/bin/ghost config \
|
||||
--port $port --process local
|
||||
--port $port --process local \
|
||||
--mail SMTP --mailuser noreply@$domain --mailpass $mail_pwd --mailhost 127.0.0.1 --mailport 25
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -111,7 +111,8 @@ fi
|
|||
# Make sure the configuration is correct
|
||||
pushd $install_dir/ghost
|
||||
ynh_exec_as $app $ynh_node_load_PATH $install_dir/node_modules/ghost-cli/bin/ghost config \
|
||||
--port $port --process local
|
||||
--port $port --process local \
|
||||
--mail SMTP --mailuser noreply@$domain --mailpass $mail_pwd --mailhost 127.0.0.1 --mailport 25
|
||||
popd
|
||||
|
||||
# Cleanup cache
|
||||
|
|
Loading…
Add table
Reference in a new issue