From e382417bdfe34653b8bc95f4fb71e309bbd114cb Mon Sep 17 00:00:00 2001 From: Robert Sprunk Date: Wed, 9 Dec 2020 22:45:17 +0100 Subject: [PATCH] Add WSGIPassAuthorization On to support basic auth Basic auth is used by the paperless api. In order to use basic auth with wsgi this directive is required: `WSGIPassAuthorization On` https://www.django-rest-framework.org/api-guide/authentication/#setting-the-authentication-scheme --- docs/setup.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/setup.rst b/docs/setup.rst index 59f408015..1dd08efae 100644 --- a/docs/setup.rst +++ b/docs/setup.rst @@ -342,6 +342,7 @@ and mod_wsgi, with a Paperless installation in ``/home/paperless/``: WSGIScriptAlias / /home/paperless/paperless/src/paperless/wsgi.py WSGIDaemonProcess example.com user=paperless group=paperless threads=5 python-path=/home/paperless/paperless/src:/home/paperless/.env/lib/python3.6/site-packages WSGIProcessGroup example.com + WSGIPassAuthorization On