aboutsummaryrefslogtreecommitdiff
path: root/webmentions_ssg/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'webmentions_ssg/config.py')
-rw-r--r--webmentions_ssg/config.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/webmentions_ssg/config.py b/webmentions_ssg/config.py
index 576f376..28ab43d 100644
--- a/webmentions_ssg/config.py
+++ b/webmentions_ssg/config.py
@@ -54,9 +54,9 @@ class DefaultConfig:
# Receiver
# Empty by default: no target hostnames are accepted until configured.
ALLOWED_TARGET_HOSTNAMES = frozenset()
- # When enabled, only source domains listed in AllowedSource are accepted.
- # Entries in BlockedSource always take precedence.
- SOURCE_ALLOWLIST_ENABLED = False
+ # When enabled, only source domains listed in AllowedDomain are accepted.
+ # Entries in BlockedDomain always take precedence.
+ ALLOWLIST_ENABLED = False
# 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.
@@ -213,8 +213,8 @@ def validated_config_overrides(
except (TypeError, ValueError) as exc:
raise type(exc)(f"{key}: {exc}") from exc
- if type(config["SOURCE_ALLOWLIST_ENABLED"]) is not bool:
- raise ValueError("SOURCE_ALLOWLIST_ENABLED must be a boolean.")
+ if type(config["ALLOWLIST_ENABLED"]) is not bool:
+ raise ValueError("ALLOWLIST_ENABLED must be a boolean.")
proxy_hops = config["PROXY_FIX_TRUSTED_HOPS"]
if type(proxy_hops) is not int or proxy_hops < 0: