mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Merge pull request #18 from benjaminfrank/systemd-socket-port-80
Enable non-root port 80 via systemd
This commit is contained in:
commit
049a2dde96
@ -419,6 +419,10 @@ writing. Windows is not and will never be supported.
|
||||
``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
|
||||
|
@ -3,6 +3,7 @@ Description=Paperless webserver
|
||||
After=network.target
|
||||
Wants=network.target
|
||||
Requires=redis.service
|
||||
#Requires=paperless-webserver.socket
|
||||
|
||||
[Service]
|
||||
User=paperless
|
||||
|
9
scripts/paperless-webserver.socket
Normal file
9
scripts/paperless-webserver.socket
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Paperless Webserver Socket
|
||||
|
||||
[Socket]
|
||||
ListenStream=80
|
||||
NoDelay=true
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
Loading…
x
Reference in New Issue
Block a user