From ae2c825578249de24f5357d3599eb7eaf63e9f02 Mon Sep 17 00:00:00 2001 From: Sebastian Gumprich Date: Sun, 3 May 2020 12:04:38 +0200 Subject: [PATCH] add mail configuration --- scripts/install | 2 ++ sources/extra_files/app/.env | 18 ++++++++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index 8b4df53..5165446 100755 --- a/scripts/install +++ b/scripts/install @@ -203,6 +203,8 @@ ynh_replace_string --match_string="__API_SECRET__" --replace_string="$(ynh_strin ynh_replace_string --match_string="__APP_KEY__" --replace_string="$(ynh_string_random --length=32)" --target_file="$final_path/.env" ynh_replace_string --match_string="__PHANTOMJS_KEY__" --replace_string="$(ynh_string_random --length=32)" --target_file="$final_path/.env" +ynh_replace_string --match_string="__MAIL_FROM_ADDRESS__" --replace_string="$(ynh_user_get_info $admin mail)" --target_file="$final_path/.env" +ynh_replace_string --match_string="__MAIL_FROM_NAME__" --replace_string="$(ynh_user_get_info $admin firstname) $(ynh_user_get_info $admin lastname)" --target_file="$final_path/.env" #================================================= # GENERIC FINALIZATION diff --git a/sources/extra_files/app/.env b/sources/extra_files/app/.env index f0d5eda..f36d9e7 100644 --- a/sources/extra_files/app/.env +++ b/sources/extra_files/app/.env @@ -9,21 +9,27 @@ APP_CIPHER=AES-256-CBC API_SECRET=__API_SECRET__ REQUIRE_HTTPS=true + DB_TYPE=mysql DB_HOST=localhost DB_DATABASE=__DB_NAME__ DB_USERNAME=__DB_USER__ DB_PASSWORD=__DB_PASS__ -MAIL_DRIVER=smtp -MAIL_PORT=587 -MAIL_ENCRYPTION=tls -MAIL_HOST= + +MAIL_DRIVER=mail +MAIL_PORT=25 +MAIL_ENCRYPTION= +MAIL_HOST=localhost MAIL_USERNAME= -MAIL_FROM_NAME=Invoiceninja -MAIL_FROM_ADDRESS=invoiceninja@gumpri.ch +MAIL_FROM_NAME="__MAIL_FROM_NAME__" +MAIL_FROM_ADDRESS=__MAIL_FROM_ADDRESS__ MAIL_PASSWORD= + PHANTOMJS_CLOUD_KEY=a-demo-key-with-low-quota-per-ip-address PHANTOMJS_SECRET=__PHANTOMJS_KEY__ + MAILGUN_DOMAIN= MAILGUN_SECRET= + +# do not run the setup wizard PRECONFIGURED_INSTALL=true