mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
Feature: Switch webserver to granian (#9218)
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
import os
|
||||
|
||||
from django.conf import settings
|
||||
from uvicorn.workers import UvicornWorker
|
||||
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "paperless.settings")
|
||||
|
||||
|
||||
class ConfigurableWorker(UvicornWorker):
|
||||
CONFIG_KWARGS = {
|
||||
"root_path": settings.FORCE_SCRIPT_NAME or "",
|
||||
}
|
Reference in New Issue
Block a user