A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Allow specifying port through PAPERLESS_PORT environment variable
Yannic Schroederd13fdd0791e7
diff --git a/docs/configuration.rst b/docs/configuration.rstindex 4813ad932..a91ecfece 100644--- a/docs/configuration.rst+++ b/docs/configuration.rst@@ -699,6 +699,12 @@ PAPERLESS_WEBSERVER_WORKERS=<num>Defaults to 2.+PAPERLESS_PORT=<port>+ The port number the webserver will listen on. Change the port if it collides+ with other services in your setup.++ Defaults to 8000.+USERMAP_UID=<uid>The ID of the paperless user in the container. Set this to your actual user ID on thehost system, which you can get by executingdiff --git a/gunicorn.conf.py b/gunicorn.conf.pyindex bcc12490e..179346477 100644--- a/gunicorn.conf.py+++ b/gunicorn.conf.py@@ -1,6 +1,6 @@import os-bind = '0.0.0.0:8000'+bind = f'0.0.0.0:{os.getenv("PAPERLESS_PORT", 8000)}'workers = int(os.getenv("PAPERLESS_WEBSERVER_WORKERS", 2))worker_class = 'paperless.workers.ConfigurableWorker'timeout = 120