diff --git a/conf/config.yml b/conf/config.yml index 4ea9c3c..633e08a 100644 --- a/conf/config.yml +++ b/conf/config.yml @@ -98,15 +98,15 @@ cors: mailer: # Whether to enable the mailer or not. If it is disabled, all users are enabled right away and password reset is not possible. - enabled: false + enabled: true # SMTP Host - host: "" + host: "localhost" # SMTP Host port - port: 587 + port: 25 # SMTP username - username: "user" + username: "vikunja" # SMTP password - password: "" + password: "__SMTP_USER_PWD__" # Wether to skip verification of the tls certificate on the server skiptlsverify: false # The default from address when sending emails diff --git a/manifest.json b/manifest.json index 196e6f8..a236d12 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Self-hosted To-Do list application", "fr": "Application de liste de tâches auto-hébergée" }, - "version": "0.18.1~ynh2", + "version": "0.18.1~ynh3", "url": "https://vikunja.io/", "upstream": { "license": "GPL-3.0", diff --git a/scripts/install b/scripts/install index 6812e5f..87fcf8b 100644 --- a/scripts/install +++ b/scripts/install @@ -123,6 +123,8 @@ ynh_add_nginx_config #================================================= ynh_script_progression --message="Adding a configuration file..." --weight=1 +smtp_user_pwd=$(ynh_string_random --length=24) +ynh_app_setting_set --app=$app --key=path --value=$smtp_user_pwd redis_db=$(ynh_redis_get_free_db) ynh_add_config --template="../conf/config.yml" --destination="/etc/vikunja/config.yml" diff --git a/scripts/upgrade b/scripts/upgrade index 1c09288..de27cd2 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -26,11 +26,11 @@ db_user=$db_name db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd) timezone="$(cat /etc/timezone)" secret=$(ynh_string_random --length=32) +smtp_user_pwd=$(ynh_app_setting_get --app=$app --key=smtp_user_pwd) #================================================= # CHECK VERSION #================================================= -ynh_script_progression --message="Checking version..." upgrade_type=$(ynh_check_app_version_changed)