diff options
Diffstat (limited to 'webmentions_ssg/config.py')
| -rw-r--r-- | webmentions_ssg/config.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/webmentions_ssg/config.py b/webmentions_ssg/config.py index 28cea64..97dd682 100644 --- a/webmentions_ssg/config.py +++ b/webmentions_ssg/config.py @@ -42,6 +42,13 @@ class DefaultConfig: # Empty by default: no target hostnames are accepted until configured. ALLOWED_HOSTNAMES = set() + # Cap incoming HTTP request bodies (also applies to other Flask routes). + MAX_CONTENT_LENGTH = 64 * 1024 + # Independent UTF-8 byte limit for each submitted source/target URL. + MAX_WEBMENTION_URL_BYTES = 8192 + # Purge terminal failed/deleted received Webmentions after 30 days. + RECEIVED_RETENTION_DAYS = 30 + RECEIVED_RETENTION_SCHEDULE = "0 3 * * *" MAX_REDIRECTS = 20 MAX_SOURCE_BYTES = 1_000_000 REQUEST_TIMEOUT = 5.0 |
