Feature: Switch webserver to granian (#9218)

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
Trenton H
2025-02-28 11:37:45 -08:00
committed by GitHub
parent 628d85080f
commit 654c9ca273
15 changed files with 106 additions and 341 deletions

View File

@@ -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 "",
}