feat: make webhook payload size limit configurable
Add WEBHOOK_MAX_PAYLOAD_BYTES setting (default 1 MB) so deployments with larger webhook payloads can raise the limit via environment variable instead of being hard-blocked at 1 MB. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
committed by
Abhimanyu Saharan
parent
acd1526acf
commit
b2fb8a082d
@@ -57,6 +57,9 @@ class Settings(BaseSettings):
|
||||
security_header_referrer_policy: str = "strict-origin-when-cross-origin"
|
||||
security_header_permissions_policy: str = ""
|
||||
|
||||
# Webhook payload size limit in bytes (default 1 MB).
|
||||
webhook_max_payload_bytes: int = 1_048_576
|
||||
|
||||
# Database lifecycle
|
||||
db_auto_migrate: bool = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user