aboutsummaryrefslogtreecommitdiff
path: root/webmentions_ssg/config.py
diff options
context:
space:
mode:
authorDennis Fink2026-10-25 20:47:14 +0100
committerDennis Fink2026-10-25 20:47:14 +0100
commita231913ab273f427697f2d27d615b495f6e160bb (patch)
treeb9d84e3aab3555ec88c648f790f9c31d8a4266a6 /webmentions_ssg/config.py
parentae25061b14f8ea713ec7695848421edf84e4f0fc (diff)
downloadwebmentions-ssg-a231913ab273f427697f2d27d615b495f6e160bb.tar.gz
webmentions-ssg-a231913ab273f427697f2d27d615b495f6e160bb.zip
feat(receiver): add email notifications for new webmentions
Send an email after a newly received Webmention is successfully verified, with SMTP delivery configurable through Flask-Mail. Avoid notifications for resubmissions and manual reverification, and keep the persisted verification result unchanged if notification enqueueing fails.
Diffstat (limited to 'webmentions_ssg/config.py')
-rw-r--r--webmentions_ssg/config.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/webmentions_ssg/config.py b/webmentions_ssg/config.py
index 72842c4..afe7126 100644
--- a/webmentions_ssg/config.py
+++ b/webmentions_ssg/config.py
@@ -18,9 +18,19 @@ class DefaultConfig:
LOGFILE_MAX_BYTES = 20_000_000
LOGFILE_BACKUP_COUNT = 10
SQLALCHEMY_DATABASE_URI = "sqlite:///webmentions-ssg.db"
+
WEBMENTIONS_SSG_SOURCE_DIRECTORY = None
WEBMENTIONS_SSG_SOURCE_BASE_URL = None
WEBMENTIONS_SSG_SCANNER_SCHEDULE = "0 * * * *"
+ WEBMENTIONS_SSG_NOTIFICATION_EMAIL = None
+
+ MAIL_SERVER = "localhost"
+ MAIL_PORT = 25
+ MAIL_USE_TLS = False
+ MAIL_USE_SSL = False
+ MAIL_USERNAME = None
+ MAIL_PASSWORD = None
+ MAIL_DEFAULT_SENDER = None
class DevelopmentConfig(DefaultConfig):