fix: storage_api.py

This commit is contained in:
tao.chen
2026-08-06 19:02:11 +08:00
parent 5fa61d7146
commit 2894b1f06f
5 changed files with 43 additions and 49 deletions
+11
View File
@@ -42,6 +42,17 @@ class Settings(BaseSettings):
default=False,
description="Enable the self-hosted UI's short-lived demo session cookie.",
)
cookie_force_secure: bool = Field(
default=False,
description=(
"Force the ``Secure`` flag on the session cookie even when the "
"inbound request scheme is plain HTTP. Enable this when running "
"behind a TLS-terminating reverse proxy that strips or rewrites "
"``X-Forwarded-Proto`` — without it the cookie is written without "
"the Secure flag and modern browsers will refuse to send it back "
"over HTTPS."
),
)
# ── service identity ──────────────────────────────────────────
service_name: str = Field(