feat: update environment configuration and README for DocuNova branding

This commit is contained in:
Christian Krakau-Louis
2025-03-28 23:49:07 +01:00
parent ef6ea291d5
commit 219a252090
4 changed files with 12 additions and 9 deletions
+1
View File
@@ -30,6 +30,7 @@ class Settings(BaseSettings):
azure_region: str
azure_endpoint: str
gotenberg_url: str
external_hostname: str = "localhost" # Default to localhost
# Authentik
authentik_client_id: Optional[str] = None
+2 -2
View File
@@ -30,7 +30,7 @@ SESSION_SECRET = config(
default="YOUR_DEFAULT_SESSION_SECRET_MUST_BE_32_CHARS_OR_MORE"
)
app = FastAPI(title="Document Processing API")
app = FastAPI(title="DocuNova")
# 1) Session Middleware (for request.session to work)
app.add_middleware(SessionMiddleware, secret_key=SESSION_SECRET)
@@ -40,7 +40,7 @@ app.add_middleware(ProxyHeadersMiddleware, trusted_hosts="*")
# 3) (Optional but recommended) Restrict valid hosts:
app.add_middleware(TrustedHostMiddleware, allowed_hosts=[
"docparse.hosterra.net",
settings.external_hostname,
"localhost",
"127.0.0.1"
])