aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--contrib/webmentions-ssg.example.cfg7
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/webmentions-ssg.example.cfg b/contrib/webmentions-ssg.example.cfg
index afc5621..882c86d 100644
--- a/contrib/webmentions-ssg.example.cfg
+++ b/contrib/webmentions-ssg.example.cfg
@@ -95,6 +95,13 @@ MAX_REDIRECTS = 20 # also used for outgoing requests
# Webmention. Include each hostname you serve; wildcards are not supported.
ALLOWED_TARGET_HOSTNAMES = {"example.com", "www.example.com"}
+# Optional source allowlist mode. By default, every valid public source is
+# accepted unless its hostname appears in the admin-managed blocklist.
+# When enabled, a source must match an allowed domain; blocked entries always
+# override allowed entries. Manage both lists in the authenticated "Source rules"
+# page. Entries include subdomains; an empty allowlist rejects all sources.
+SOURCE_ALLOWLIST_ENABLED = False
+
# Maximum size of an incoming HTTP request body, including form encoding. This
# global Flask limit also applies to login and administration routes.
MAX_CONTENT_LENGTH = 64 * 1024