1
0
Fork 0
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:
tituspijean 2023-08-18 16:26:53 +02:00
parent 1f93f154b0
commit f796e46e38
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720
4 changed files with 7 additions and 2 deletions

View file

@ -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. 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.

View file

@ -50,6 +50,7 @@ ram.runtime = "1G"
[resources.system_user] [resources.system_user]
allow_email = true allow_email = true
mail_user = "noreply"
[resources.install_dir] [resources.install_dir]

View file

@ -47,7 +47,8 @@ popd
# Make sure the configuration is correct # Make sure the configuration is correct
pushd $install_dir/ghost pushd $install_dir/ghost
ynh_exec_as $app $ynh_node_load_PATH $install_dir/node_modules/ghost-cli/bin/ghost config \ 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 popd
#================================================= #=================================================

View file

@ -111,7 +111,8 @@ fi
# Make sure the configuration is correct # Make sure the configuration is correct
pushd $install_dir/ghost pushd $install_dir/ghost
ynh_exec_as $app $ynh_node_load_PATH $install_dir/node_modules/ghost-cli/bin/ghost config \ 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 popd
# Cleanup cache # Cleanup cache