mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 15:25:41 +01:00
Introduce ConfigurableWorker to make uvicorn respect FORCE_SCRIPT_NAME
This commit is contained in:
parent
5bf725546b
commit
c35c4eade9
2 changed files with 12 additions and 1 deletions
|
|
@ -2,7 +2,7 @@ import os
|
|||
|
||||
bind = '0.0.0.0:8000'
|
||||
workers = int(os.getenv("PAPERLESS_WEBSERVER_WORKERS", 2))
|
||||
worker_class = 'uvicorn.workers.UvicornWorker'
|
||||
worker_class = 'paperless.workers.ConfigurableWorker'
|
||||
timeout = 120
|
||||
|
||||
def pre_fork(server, worker):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue