A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
documentation
jonaswinkler28c79f1abb33
diff --git a/docs/changelog.rst b/docs/changelog.rstindex 1da8621bb..2b9821408 100644--- a/docs/changelog.rst+++ b/docs/changelog.rst@@ -37,6 +37,8 @@ paperless-ng 1.1.0Paperless will continue to work with WSGI, but you will not get any status notifications.+ Apache ``mod_wsgi`` users, see :ref:`this note <faq-mod_wsgi>`.+* Paperless now offers suggestions for tags, correspondents and types on the document detail page.* Added an interactive easy install script that automatically downloads, configures and starts paperless with docker.diff --git a/docs/faq.rst b/docs/faq.rstindex e41f9aace..0f4527d62 100644--- a/docs/faq.rst+++ b/docs/faq.rst@@ -62,9 +62,9 @@ file extensions do not matter.**A:** The short answer is yes. I've tested it on a Raspberry Pi 3 B.The long answer is that certain parts of-Paperless will run very slow, such as the tesseract OCR. On Raspberry Pi,+Paperless will run very slow, such as the OCR. On Raspberry Pi,try to OCR documents before feeding them into paperless so that paperless can-reuse the text. The web interface should be a lot snappier, since it runs+reuse the text. The web interface is a lot snappier, since it runsin your browser and paperless has to do much less work to serve the data... note::@@ -76,7 +76,14 @@ in your browser and paperless has to do much less work to serve the data.**Q:** *How do I install paperless-ng on Raspberry Pi?***A:** Docker images are available for arm and arm64 hardware, so just follow-the docker-compose instructions, or go the bare metal route.+the docker-compose instructions. Apart from more required disk space compared to+a bare metal installation, docker comes with close to zero overhead, even on+Raspberry Pi.++If you decide to got with the bare metal route, be aware that some of the+python requirements do not have precompiled packages for ARM / ARM64. Installation+of these will require additional development libraries and compilation will take+a long time.**Q:** *How do I run this on unRaid?*@@ -95,12 +102,21 @@ occasionally build the image on and see if it works.**Q:** *How do I proxy this with NGINX?*-.. code::+**A:** See :ref:`here <setup-nginx>`.++.. _faq-mod_wsgi:++**Q:** *How do I get WebSocket support with Apache mod_wsgi*?++**A:** ``mod_wsgi`` by itself does not support ASGI. Paperless will continue+to work with WSGI, but certain features such as status notifications about+document consumption won't be available.- location / {- proxy_pass http://localhost:8000/- }+If you want to continue using ``mod_wsgi``, you will have to run an ASGI-enabled+web server as well that processes WebSocket connections, and configure Apache to+redirect WebSocket connections to this server. Multiple options for ASGI servers+exist:-And that's about it. Paperless serves everything, including static files by itself-when running the docker image. If you want to do anything fancy, you have to-install paperless bare metal.+* ``gunicorn`` with ``uvicorn`` as the worker implementation (the default of paperless)+* ``daphne`` as a standalone server, which is the reference implementation for ASGI.+* ``uvicorn`` as a standalone serverdiff --git a/docs/index.rst b/docs/index.rstindex a083fb3d1..4035d822e 100644--- a/docs/index.rst+++ b/docs/index.rst@@ -70,8 +70,8 @@ Contentsconfigurationapifaq- extendingtroubleshooting+ extendingcontributingscannersscreenshotsdiff --git a/docs/setup.rst b/docs/setup.rstindex 6d601378d..139db549a 100644--- a/docs/setup.rst+++ b/docs/setup.rst@@ -588,7 +588,7 @@ Migration to paperless-ng is then performed in a few simple steps:paperless.3. Download the latest release of paperless-ng. You can either go with the- docker-compose files from `here <https://github.com/jonaswinkler/paperless-ng/tree/master/docker/compose>`_+ docker-compose files from `here <https://github.com/jonaswinkler/paperless-ng/tree/master/docker/compose>`__or clone the repository to build the image yourself (see :ref:`above <setup-docker_build>`).You can either replace your current paperless folder or put paperless-ngin a different location.@@ -787,3 +787,46 @@ For details, refer to :ref:`configuration`.well as on any other device... _redis: https://redis.io/+++.. _setup-nginx:++Using nginx as a reverse proxy+##############################++If you want to expose paperless to the internet, you should hide it behind a+reverse proxy with SSL enabled.++In addition to the usual configuration for SSL,+the following configuration is required for paperless to operate:++.. code:: nginx++ http {++ # Adjust as required. This is the maximum size for file uploads.+ # The default value 1M might be a little too small.+ client_max_body_size 10M;++ server {++ location / {++ # Adjust host and port as required.+ proxy_pass http://localhost:8000/;++ # These configuration options are required for WebSockets to work.+ proxy_http_version 1.1;+ proxy_set_header Upgrade $http_upgrade;+ proxy_set_header Connection "upgrade";++ proxy_redirect off;+ proxy_set_header Host $host;+ proxy_set_header X-Real-IP $remote_addr;+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;+ proxy_set_header X-Forwarded-Host $server_name;+ }+ }+ }++Also read `this <https://channels.readthedocs.io/en/stable/deploying.html#nginx-supervisor-ubuntu>`__, towards the end of the section.