A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
moved gunicorn.conf.py to a more appropriate place and reference that in the configuration scripts.
jonaswinkleradb76eafafdb
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 425243163..f27d258b8 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -155,6 +155,7 @@ jobs:mkdir dist/paperless-ng/scriptscp .dockerignore .env Dockerfile Pipfile Pipfile.lock LICENSE README.md requirements.txt dist/paperless-ng/cp paperless.conf.example dist/paperless-ng/paperless.conf+ cp gunicorn.conf.py dist/paperless-ng/gunicorn.conf.pycp docker/ dist/paperless-ng/docker -rcp scripts/*.service scripts/*.sh dist/paperless-ng/scripts/cp src/ dist/paperless-ng/src -rdiff --git a/Dockerfile b/Dockerfileindex 291036f55..6247ef009 100644--- a/Dockerfile+++ b/Dockerfile@@ -77,7 +77,8 @@ RUN apt-get update \# copy scripts# this fixes issues with imagemagick and PDFCOPY docker/imagemagick-policy.xml /etc/ImageMagick-6/policy.xml-COPY docker/gunicorn.conf.py ./++COPY gunicorn.conf.py ./COPY docker/supervisord.conf /etc/supervisord.confCOPY docker/docker-entrypoint.sh /sbin/docker-entrypoint.shdiff --git a/docs/setup.rst b/docs/setup.rstindex afb3784d6..268352d4f 100644--- a/docs/setup.rst+++ b/docs/setup.rst@@ -20,7 +20,7 @@ Paperless consists of the following components:.. code:: shell-session$ cd /path/to/paperless/src/- $ gunicorn -c ../gunicorn.conf.py -b 0.0.0.0:8000 paperless.wsgi+ $ gunicorn -c ../gunicorn.conf.py paperless.wsgior by any other means such as Apache ``mod_wsgi``.@@ -88,7 +88,7 @@ You can go multiple routes to setup and run Paperless:The Docker routes are quick & easy. These are the recommended routes. This configures all the stufffrom the above automatically so that it just works and uses sensible defaults for all configuration options.-Here you find a cheat-sheet for docker beginners: `CLI Basics <https://sehn.tech/post/devops-with-docker/>`_+Here you find a cheat-sheet for docker beginners: `CLI Basics <https://sehn.tech/post/devops-with-docker/>`_The bare metal route is complicated to setup but makes it easiershould you want to contribute some code back. You need to configure and@@ -126,7 +126,7 @@ Install Paperless from Docker HubIf you want to use the included ``docker-compose.*.yml`` file, youneed to have at least Docker version **17.09.0** and docker-compose- version **1.17.0**.+ version **1.17.0**.To check do: `docker-compose -v` or `docker -v`See the `Docker installation guide`_ on how to install the current@@ -175,7 +175,7 @@ Install Paperless from Docker Hubon such a file system, paperless will not pick up new fileswith the default configuration. You will need to use ``PAPERLESS_CONSUMER_POLLING``,which will disable inotify. See :ref:`here <configuration-polling>`.-+6. Now head over to: https://hub.docker.com/r/jonaswinkler/paperless-ng and choose your preferredimage and copy the link. To download this image do a `docker pull` followed by the link. Do this within the directory with the .yml files.Depending on your network connection and CPU this will take a while. You have time to get a beverage.@@ -195,7 +195,7 @@ Install Paperless from Docker Hub9. The default ``docker-compose.yml`` exports the webserver on your local port8000. If you haven't adapted this, you should now be able to visit your- Paperless instance at ``http://127.0.0.1:8000`` or your servers IP-Address:8000.+ Paperless instance at ``http://127.0.0.1:8000`` or your servers IP-Address:8000.Use the login credentials you have created with the previous step... _Docker: https://www.docker.com/@@ -224,7 +224,7 @@ Build the docker image yourselfwebserver:image: jonaswinkler/paperless-ng:latest-+and replace it with a line that instructs docker-compose to build the image from the current working directory instead:.. code:: yaml@@ -427,7 +427,7 @@ Install Paperless using ansibleThis role currently only supports Debian 10 Buster and Ubuntu 20.04 Focal or later as target hosts.-1. Install ansible 2.7+ on the management node.+1. Install ansible 2.7+ on the management node.This may be the target host paperless-ng is being installed on or any remote host which can access the target host.For further details, check the ansible `inventory <https://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html>`_ documentation.@@ -585,7 +585,7 @@ Migration to paperless-ng is then performed in a few simple steps:.. code:: shell-session$ docker volume ls | grep _data-+and adjust the project name in the ``.env`` file so that it matches the nameof the volumes before the ``_data`` part.diff --git a/docker/gunicorn.conf.py b/gunicorn.conf.pysimilarity index 100%rename from docker/gunicorn.conf.pyrename to gunicorn.conf.pydiff --git a/scripts/paperless-webserver.service b/scripts/paperless-webserver.serviceindex a43110be2..00bc4fa37 100644--- a/scripts/paperless-webserver.service+++ b/scripts/paperless-webserver.service@@ -8,7 +8,7 @@ Requires=redis.serviceUser=paperlessGroup=paperlessWorkingDirectory=/opt/paperless/src-ExecStart=/opt/paperless/.local/bin/gunicorn paperless.wsgi -w 2 -b 0.0.0.0:8000+ExecStart=/opt/paperless/.local/bin/gunicorn -c /opt/paperless/gunicorn.conf.py paperless.wsgi[Install]WantedBy=multi-user.target