Add ComfyUI reverse proxy with session authentication
- New /comfy/* routes that proxy to local ComfyUI instance - Dark mode login page with session-based auth (HMAC-signed cookies) - HTTP proxy for all ComfyUI requests - WebSocket proxy for real-time features - Environment variables: COMFYUI_URL, COMFYUI_USER, COMFYUI_PASS, SESSION_SECRET - Added websockets and python-multipart to server dependencies Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
+7
-1
@@ -15,7 +15,7 @@ dependencies = [
|
||||
]
|
||||
|
||||
[project.optional-dependencies]
|
||||
server = ["fastapi>=0.115", "uvicorn>=0.30", "scalar-fastapi>=1.6"]
|
||||
server = ["fastapi>=0.115", "uvicorn>=0.30", "scalar-fastapi>=1.6", "websockets>=12.0", "python-multipart>=0.0.9"]
|
||||
|
||||
[project.scripts]
|
||||
tsr = "tensors:main"
|
||||
@@ -39,6 +39,8 @@ dev = [
|
||||
"fastapi>=0.115",
|
||||
"uvicorn>=0.30",
|
||||
"scalar-fastapi>=1.6",
|
||||
"websockets>=12.0",
|
||||
"python-multipart>=0.0.9",
|
||||
]
|
||||
|
||||
[tool.ruff]
|
||||
@@ -104,6 +106,10 @@ ignore_missing_imports = true
|
||||
module = ["huggingface_hub.*"]
|
||||
ignore_missing_imports = true
|
||||
|
||||
[[tool.mypy.overrides]]
|
||||
module = ["websockets.*"]
|
||||
ignore_missing_imports = true
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
testpaths = ["tests"]
|
||||
addopts = "-v --cov=tensors --cov-report=term-missing"
|
||||
|
||||
Reference in New Issue
Block a user