From 30500411c7b78311623df40eaa437023123cfa42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Tue, 30 Apr 2024 21:18:40 +0200 Subject: [PATCH] Add support for sending email --- conf/local.py.j2 | 9 +++++++-- manifest.toml | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/conf/local.py.j2 b/conf/local.py.j2 index 477fd56..4260a07 100644 --- a/conf/local.py.j2 +++ b/conf/local.py.j2 @@ -29,13 +29,18 @@ DATABASES = { 'USER': '{{ db_user }}', 'PASSWORD': '{{ db_pwd }}', 'HOST': '127.0.0.1', - 'PORT': '5432', + 'PORT': '5432', }, } FEEDS = (('ffdn', 'http://www.ffdn.org/fr/rss.xml', 3),) - +# Email settings +EMAIL_USE_TLS = True +EMAIL_PORT = 587 +EMAIL_HOST = '{{ domain }}' +EMAIL_HOST_USER = '{{ app }}@{{ domain }}' +EMAIL_HOST_PASSWORD = '{{ mail_pwd }}' # # Tous acces # # parametrer SSO en protect_uris diff --git a/manifest.toml b/manifest.toml index 218bf3c..94906bd 100644 --- a/manifest.toml +++ b/manifest.toml @@ -60,6 +60,7 @@ ram.runtime = "50M" autoupdate.strategy = "latest_gitlab_commit" [resources.system_user] + allow_email = true [resources.install_dir]