Fix/tweak: correct token throttling behind trusted proxies (#14862)

This commit is contained in:
shamoon authored and GitHub committed 2026-11-25 23:53:47 +00:00
1 parent 958bf8e34b
commit a139c2fd21
4 files changed
+80

No files matched your search

+6
View File
@@ -551,6 +551,12 @@ when its IPv4 and IPv6 addresses are both listed in
Only trust `X-Forwarded-For` when untrusted clients cannot connect directly
to Paperless-ngx.
This count also controls which address Django REST Framework uses from
`X-Forwarded-For` for the API token throttle. With a count of zero, the
throttle uses the connecting address instead. If
`PAPERLESS_ALLAUTH_TRUSTED_CLIENT_IP_HEADER` is set, the token throttle
uses the connecting address regardless of this count.
Defaults to the number of entries in `PAPERLESS_TRUSTED_PROXIES`.
#### [`PAPERLESS_ALLAUTH_TRUSTED_CLIENT_IP_HEADER=<header-name>`](#PAPERLESS_ALLAUTH_TRUSTED_CLIENT_IP_HEADER) {#PAPERLESS_ALLAUTH_TRUSTED_CLIENT_IP_HEADER}