Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ def _csv_env(name: str) -> Tuple[str, ...]:
MCP_ENABLED = os.getenv("MCP_ENABLED", "false").strip().lower() in {"1", "true", "yes", "on"}
MCP_SOURCE_ROOTS = tuple(Path(item).expanduser().resolve() for item in _csv_env("MCP_SOURCE_ROOTS"))

# Set this to the exact production domain(s) to reject forged Host headers.
TRUSTED_HOSTS = _csv_env("TRUSTED_HOSTS")

TOOL_DISPLAY_NAME: str = "PhotoPackager"

ORIGINAL_AUTHOR: str = "Steven Seagondollar, DropShock Digital LLC"
Expand Down
5 changes: 0 additions & 5 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from typing import List

from fastapi import FastAPI, UploadFile, File, Form, HTTPException
from fastapi.middleware.trustedhost import TrustedHostMiddleware
from fastapi.responses import FileResponse, JSONResponse
from fastapi.staticfiles import StaticFiles

Expand All @@ -17,7 +16,6 @@
MAX_UPLOAD_TOTAL_BYTES,
OUTPUTS_DIR,
TEMP_UPLOADS_DIR,
TRUSTED_HOSTS,
UPLOAD_CHUNK_BYTES,
)
from schemas import JobSettings, JobResponse
Expand All @@ -28,9 +26,6 @@

app = FastAPI()

if TRUSTED_HOSTS:
app.add_middleware(TrustedHostMiddleware, allowed_hosts=list(TRUSTED_HOSTS))

STATIC_DIR = Path(__file__).parent / "frontend" / "dist"

mcp_server = FastMCP(tools=get_tools()) if MCP_ENABLED else None
Expand Down
Loading