PAPERLESS_WEBSERVER_WORKERS option

This commit is contained in:
jonaswinkler
2021-02-15 16:27:35 +01:00
parent 2fcf484229
commit f07a6b4586
4 changed files with 77 additions and 2 deletions

View File

@@ -1,5 +1,7 @@
import os
bind = '0.0.0.0:8000'
workers = 2
workers = int(os.getenv("PAPERLESS_WEBSERVER_WORKERS", 2))
worker_class = 'uvicorn.workers.UvicornWorker'
timeout = 120