mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 09:07:18 +01:00
Log failed login attempts
This commit is contained in:
parent
9893ae9880
commit
668b068bb5
6 changed files with 72 additions and 1 deletions
|
|
@ -416,6 +416,13 @@ if _paperless_url:
|
|||
# always allow localhost. Necessary e.g. for healthcheck in docker.
|
||||
ALLOWED_HOSTS = [_paperless_uri.hostname] + ["localhost"]
|
||||
|
||||
# For use with trusted proxies
|
||||
_trusted_proxies = os.getenv("PAPERLESS_TRUSTED_PROXIES")
|
||||
if _trusted_proxies:
|
||||
TRUSTED_PROXIES = _trusted_proxies.split(",")
|
||||
else:
|
||||
TRUSTED_PROXIES = []
|
||||
|
||||
# The secret key has a default that should be fine so long as you're hosting
|
||||
# Paperless on a closed network. However, if you're putting this anywhere
|
||||
# public, you should change the key to something unique and verbose.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue