Reduces webserver and task worker count to 1 by default

This commit is contained in:
Trenton Holmes 2022-07-11 13:54:04 -07:00
parent da8246d8c3
commit edaaedae36
5 changed files with 31 additions and 60 deletions

View file

@ -1,7 +1,7 @@
import os
bind = f'[::]:{os.getenv("PAPERLESS_PORT", 8000)}'
workers = int(os.getenv("PAPERLESS_WEBSERVER_WORKERS", 2))
workers = int(os.getenv("PAPERLESS_WEBSERVER_WORKERS", 1))
worker_class = "paperless.workers.ConfigurableWorker"
timeout = 120