mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-09 09:58:20 -05:00
Merge pull request #1258 from tribut/logout-url
Add PAPERLESS_LOGOUT_REDIRECT_URL
This commit is contained in:
commit
d656de8883
@ -233,6 +233,13 @@ PAPERLESS_HTTP_REMOTE_USER_HEADER_NAME=<str>
|
|||||||
|
|
||||||
Defaults to `HTTP_REMOTE_USER`.
|
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:
|
.. _configuration-ocr:
|
||||||
|
|
||||||
OCR settings
|
OCR settings
|
||||||
|
@ -144,6 +144,7 @@ ROOT_URLCONF = 'paperless.urls'
|
|||||||
FORCE_SCRIPT_NAME = os.getenv("PAPERLESS_FORCE_SCRIPT_NAME")
|
FORCE_SCRIPT_NAME = os.getenv("PAPERLESS_FORCE_SCRIPT_NAME")
|
||||||
BASE_URL = (FORCE_SCRIPT_NAME or "") + "/"
|
BASE_URL = (FORCE_SCRIPT_NAME or "") + "/"
|
||||||
LOGIN_URL = BASE_URL + "accounts/login/"
|
LOGIN_URL = BASE_URL + "accounts/login/"
|
||||||
|
LOGOUT_REDIRECT_URL = os.getenv("PAPERLESS_LOGOUT_REDIRECT_URL")
|
||||||
|
|
||||||
WSGI_APPLICATION = 'paperless.wsgi.application'
|
WSGI_APPLICATION = 'paperless.wsgi.application'
|
||||||
ASGI_APPLICATION = "paperless.asgi.application"
|
ASGI_APPLICATION = "paperless.asgi.application"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user