Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
Merge bf2cdae into cd43bc1
Browse files Browse the repository at this point in the history
  • Loading branch information
tribut committed Aug 26, 2021
2 parents cd43bc1 + bf2cdae commit 0abc84a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,13 @@ PAPERLESS_HTTP_REMOTE_USER_HEADER_NAME=<str>

Defaults to `HTTP_REMOTE_USER`.

PAPERLESS_LOGOUT_REDIRECT_URL=<str>
URL to redirect the user to after a logout. This can be used together with
`PAPERLESS_ENABLE_HTTP_REMOTE_USER` to redirect the user back to the SSO
application's logout page.

Defaults to None, which disables this feature.

.. _configuration-ocr:

OCR settings
Expand Down
1 change: 1 addition & 0 deletions src/paperless/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ def __get_boolean(key, default="NO"):
FORCE_SCRIPT_NAME = os.getenv("PAPERLESS_FORCE_SCRIPT_NAME")
BASE_URL = (FORCE_SCRIPT_NAME or "") + "/"
LOGIN_URL = BASE_URL + "accounts/login/"
LOGOUT_REDIRECT_URL = os.getenv("PAPERLESS_LOGOUT_REDIRECT_URL")

WSGI_APPLICATION = 'paperless.wsgi.application'
ASGI_APPLICATION = "paperless.asgi.application"
Expand Down

0 comments on commit 0abc84a

Please sign in to comment.