diff options
| author | Dennis Fink | 2026-10-25 22:26:40 +0100 |
|---|---|---|
| committer | Dennis Fink | 2026-10-25 22:26:40 +0100 |
| commit | ce802830c37565d325ba2ecc060443550abb1955 (patch) | |
| tree | b2cdf65353b1eb28d2c8d394b0dcd24461c4db6c /webmentions_ssg/config.py | |
| parent | a231913ab273f427697f2d27d615b495f6e160bb (diff) | |
| download | webmentions-ssg-ce802830c37565d325ba2ecc060443550abb1955.tar.gz webmentions-ssg-ce802830c37565d325ba2ecc060443550abb1955.zip | |
refactor(core): simplify configuration keys
Remove the WEBMENTIONS_SSG prefix from application-specific
configuration settings and update validators, tasks, and tests to use
the shorter names.
Diffstat (limited to 'webmentions_ssg/config.py')
| -rw-r--r-- | webmentions_ssg/config.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/webmentions_ssg/config.py b/webmentions_ssg/config.py index afe7126..cbdd614 100644 --- a/webmentions_ssg/config.py +++ b/webmentions_ssg/config.py @@ -19,10 +19,10 @@ class DefaultConfig: 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 + SOURCE_DIRECTORY = None + BASE_URL = None + SCANNER_SCHEDULE = "0 * * * *" + NOTIFICATION_EMAIL = None MAIL_SERVER = "localhost" MAIL_PORT = 25 @@ -58,8 +58,8 @@ class TestingConfig(DefaultConfig): HUEY_URL = "memory://" - WEBMENTIONS_SSG_ALLOWED_HOSTNAMES = {"dennisfink.me"} + ALLOWED_HOSTNAMES = {"dennisfink.me"} - WEBMENTIONS_SSG_MAX_REDIRECTS = 20 - WEBMENTIONS_SSG_MAX_SOURCE_BYTES = 1_000_000 - WEBMENTIONS_SSG_REQUEST_TIMEOUT = 5.0 + MAX_REDIRECTS = 20 + MAX_SOURCE_BYTES = 1_000_000 + REQUEST_TIMEOUT = 5.0 |
