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

Commit

Permalink
Merge pull request #1258 from tribut/logout-url
Browse files Browse the repository at this point in the history
Add PAPERLESS_LOGOUT_REDIRECT_URL
  • Loading branch information
jonaswinkler committed Sep 10, 2021
2 parents 32f0eba + bf2cdae commit d656de8
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
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
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 d656de8

Please sign in to comment.