From 524bc2722f8529e2686844bcd49d428b48ed9d96 Mon Sep 17 00:00:00 2001 From: benjaminfrank Date: Wed, 16 Jun 2021 22:40:26 +0200 Subject: [PATCH 1/6] Update paperless-webserver.service --- scripts/paperless-webserver.service | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/paperless-webserver.service b/scripts/paperless-webserver.service index 6a4655b6f..14df6d5d2 100644 --- a/scripts/paperless-webserver.service +++ b/scripts/paperless-webserver.service @@ -3,6 +3,7 @@ Description=Paperless webserver After=network.target Wants=network.target Requires=redis.service +#Requires=paperless-webserver.socket [Service] User=paperless From e0a2af3d984e6f602713daa192a8f69ccc2409dd Mon Sep 17 00:00:00 2001 From: benjaminfrank Date: Wed, 16 Jun 2021 22:42:54 +0200 Subject: [PATCH 2/6] Create paperless-webserver.socket --- scripts/paperless-webserver.socket | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 scripts/paperless-webserver.socket diff --git a/scripts/paperless-webserver.socket b/scripts/paperless-webserver.socket new file mode 100644 index 000000000..954553237 --- /dev/null +++ b/scripts/paperless-webserver.socket @@ -0,0 +1,9 @@ +[Unit] +Description=Paperless Webserver Socket + +[Socket] +ListenStream=80 +NoDelay=true + +[Install] +WantedBy=sockets.target From ab0ec0d5a5ec92622b334122ee9761acd8c5608d Mon Sep 17 00:00:00 2001 From: benjaminfrank Date: Wed, 16 Jun 2021 22:56:51 +0200 Subject: [PATCH 3/6] documentation I have no clue why it looks funny though --- docs/setup.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/setup.rst b/docs/setup.rst index 3600492da..f143e4d14 100644 --- a/docs/setup.rst +++ b/docs/setup.rst @@ -408,7 +408,11 @@ writing. Windows is not and will never be supported. Paperless needs the ``webserver`` script to run the webserver, the ``consumer`` script to watch the input folder, and the ``scheduler`` script to run tasks such as email checking and document consumption. - + + The ``socket`` script enables ``gunicorn`` to run on port 80 without + root privileges. For this you need to uncomment the ``Require=paperless-webserver.socket`` + in the ``webserver`` script and configure ``gunicorn`` to listen on port 80 (see ``paperless/gunicorn.conf.py``). + You may need to adjust the path to the ``gunicorn`` executable. This will be installed as part of the python dependencies, and is either located in the ``bin`` folder of your virtual environment, or in ``~/.local/bin/`` if From 99e5cf0cdcc6dfd2f7d331b6c3de3099ef9f496a Mon Sep 17 00:00:00 2001 From: benjaminfrank Date: Wed, 16 Jun 2021 23:02:49 +0200 Subject: [PATCH 4/6] remove whitespaces --- docs/setup.rst | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/setup.rst b/docs/setup.rst index f143e4d14..5a84ec1c8 100644 --- a/docs/setup.rst +++ b/docs/setup.rst @@ -408,11 +408,9 @@ writing. Windows is not and will never be supported. Paperless needs the ``webserver`` script to run the webserver, the ``consumer`` script to watch the input folder, and the ``scheduler`` script to run tasks such as email checking and document consumption. - The ``socket`` script enables ``gunicorn`` to run on port 80 without root privileges. For this you need to uncomment the ``Require=paperless-webserver.socket`` in the ``webserver`` script and configure ``gunicorn`` to listen on port 80 (see ``paperless/gunicorn.conf.py``). - You may need to adjust the path to the ``gunicorn`` executable. This will be installed as part of the python dependencies, and is either located in the ``bin`` folder of your virtual environment, or in ``~/.local/bin/`` if From 3cc463b2c348bc1909df94d7322a626fd97c79d9 Mon Sep 17 00:00:00 2001 From: benjaminfrank Date: Wed, 16 Jun 2021 23:03:28 +0200 Subject: [PATCH 5/6] add section --- docs/setup.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/setup.rst b/docs/setup.rst index 5a84ec1c8..3c9ff4e1a 100644 --- a/docs/setup.rst +++ b/docs/setup.rst @@ -408,9 +408,12 @@ writing. Windows is not and will never be supported. Paperless needs the ``webserver`` script to run the webserver, the ``consumer`` script to watch the input folder, and the ``scheduler`` script to run tasks such as email checking and document consumption. + The ``socket`` script enables ``gunicorn`` to run on port 80 without root privileges. For this you need to uncomment the ``Require=paperless-webserver.socket`` - in the ``webserver`` script and configure ``gunicorn`` to listen on port 80 (see ``paperless/gunicorn.conf.py``). + in the ``webserver`` script and configure ``gunicorn`` to listen on port 80 (see + +``paperless/gunicorn.conf.py``). You may need to adjust the path to the ``gunicorn`` executable. This will be installed as part of the python dependencies, and is either located in the ``bin`` folder of your virtual environment, or in ``~/.local/bin/`` if From ec707bd02a5479632e7f2c951285fd791013205d Mon Sep 17 00:00:00 2001 From: benjaminfrank Date: Wed, 16 Jun 2021 23:04:39 +0200 Subject: [PATCH 6/6] formatting --- docs/setup.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/setup.rst b/docs/setup.rst index 3c9ff4e1a..5f1282b0b 100644 --- a/docs/setup.rst +++ b/docs/setup.rst @@ -411,9 +411,8 @@ writing. Windows is not and will never be supported. The ``socket`` script enables ``gunicorn`` to run on port 80 without root privileges. For this you need to uncomment the ``Require=paperless-webserver.socket`` - in the ``webserver`` script and configure ``gunicorn`` to listen on port 80 (see + in the ``webserver`` script and configure ``gunicorn`` to listen on port 80 (see ``paperless/gunicorn.conf.py``). -``paperless/gunicorn.conf.py``). You may need to adjust the path to the ``gunicorn`` executable. This will be installed as part of the python dependencies, and is either located in the ``bin`` folder of your virtual environment, or in ``~/.local/bin/`` if