]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Merge branch 'dev' into feature-remote-ocr-2 feature-remote-ocr-2 10320/head
authorshamoon <4887959+shamoon@users.noreply.github.com>
Mon, 11 Aug 2025 17:48:36 +0000 (10:48 -0700)
committerGitHub <noreply@github.com>
Mon, 11 Aug 2025 17:48:36 +0000 (10:48 -0700)
1  2 
docs/configuration.md
docs/usage.md
src/paperless/settings.py

Simple merge
diff --cc docs/usage.md
Simple merge
index 5d6d36422f6a6668da67012a75b52dfbd1ce037f,63b6add5cf6205326fd05da0df35a836424bc1ae..442948e0f074233ec2ef76a5e579f6a48bb850de
@@@ -1424,9 -1423,23 +1424,30 @@@ OUTLOOK_OAUTH_ENABLED = bool
  )
  
  ###############################################################################
- # Remote Parser                                                               #
+ # Webhooks
  ###############################################################################
+ WEBHOOKS_ALLOWED_SCHEMES = set(
+     s.lower()
+     for s in __get_list(
+         "PAPERLESS_WEBHOOKS_ALLOWED_SCHEMES",
+         ["http", "https"],
+     )
+ )
+ WEBHOOKS_ALLOWED_PORTS = set(
+     int(p)
+     for p in __get_list(
+         "PAPERLESS_WEBHOOKS_ALLOWED_PORTS",
+         [],
+     )
+ )
+ WEBHOOKS_ALLOW_INTERNAL_REQUESTS = __get_boolean(
+     "PAPERLESS_WEBHOOKS_ALLOW_INTERNAL_REQUESTS",
+     "true",
+ )
 +
++###############################################################################
++# Remote Parser                                                               #
++###############################################################################
 +REMOTE_OCR_ENGINE = os.getenv("PAPERLESS_REMOTE_OCR_ENGINE")
 +REMOTE_OCR_API_KEY = os.getenv("PAPERLESS_REMOTE_OCR_API_KEY")
 +REMOTE_OCR_ENDPOINT = os.getenv("PAPERLESS_REMOTE_OCR_ENDPOINT")