chore: delete demo_auth_enabled from config
This commit is contained in:
@@ -14,8 +14,6 @@ MYSQL_PASSWORD=change-me
|
|||||||
MYSQL_DATABASE=model_platform
|
MYSQL_DATABASE=model_platform
|
||||||
DATABASE_URL=mysql+asyncmy://root:change-me@127.0.0.1:3306/model_platform?charset=utf8mb4
|
DATABASE_URL=mysql+asyncmy://root:change-me@127.0.0.1:3306/model_platform?charset=utf8mb4
|
||||||
|
|
||||||
# Demo login is only intended for this self-hosted development UI.
|
|
||||||
DEMO_AUTH_ENABLED=true
|
|
||||||
JWT_SECRET=change-this-development-secret
|
JWT_SECRET=change-this-development-secret
|
||||||
|
|
||||||
# ============================================================================
|
# ============================================================================
|
||||||
|
|||||||
@@ -39,10 +39,6 @@ class Settings(BaseSettings):
|
|||||||
default="dev-only-not-for-production",
|
default="dev-only-not-for-production",
|
||||||
description="HS256 secret used by backend's jupyter auth_request.",
|
description="HS256 secret used by backend's jupyter auth_request.",
|
||||||
)
|
)
|
||||||
demo_auth_enabled: bool = Field(
|
|
||||||
default=False,
|
|
||||||
description="Enable the self-hosted UI's short-lived demo session cookie.",
|
|
||||||
)
|
|
||||||
cookie_force_secure: bool = Field(
|
cookie_force_secure: bool = Field(
|
||||||
default=False,
|
default=False,
|
||||||
description=(
|
description=(
|
||||||
|
|||||||
@@ -81,7 +81,6 @@ services:
|
|||||||
SERVICE_NAME: model-platform-backend
|
SERVICE_NAME: model-platform-backend
|
||||||
SCHEDULE_EVENT_NAMESPACE: ${SCHEDULE_EVENT_NAMESPACE:-model-platform-local}
|
SCHEDULE_EVENT_NAMESPACE: ${SCHEDULE_EVENT_NAMESPACE:-model-platform-local}
|
||||||
JWT_SECRET: ${JWT_SECRET:?JWT_SECRET is required}
|
JWT_SECRET: ${JWT_SECRET:?JWT_SECRET is required}
|
||||||
DEMO_AUTH_ENABLED: ${DEMO_AUTH_ENABLED:-false}
|
|
||||||
INITIAL_ADMIN_PASSWORD: ${INITIAL_ADMIN_PASSWORD:-admin12345}
|
INITIAL_ADMIN_PASSWORD: ${INITIAL_ADMIN_PASSWORD:-admin12345}
|
||||||
RUNTIME_API_URL: http://runtime:8000
|
RUNTIME_API_URL: http://runtime:8000
|
||||||
# P0-1 fix: shared secret required by /internal/v1/* routes.
|
# P0-1 fix: shared secret required by /internal/v1/* routes.
|
||||||
|
|||||||
Reference in New Issue
Block a user