Allow specifying port through PAPERLESS_PORT environment variable

This commit is contained in:
Yannic Schroeder 2022-02-21 22:38:32 +01:00
parent 0827553a69
commit d13fdd0791
2 changed files with 7 additions and 1 deletions

View file

@ -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