mirror of
https://github.com/escalante29/WealthySmart.git
synced 2026-05-19 08:28:48 +02:00
Backend now exposes /api/auth/login + /api/auth/logout setting an httpOnly ws_token cookie, and get_current_user accepts either the cookie (SPA) or a Bearer token (n8n/CLI). AuthContext probes the cookie via /api/v1/auth/me. Dockerfiles and compose files updated for the new agent service deps and CopilotKit dev sidecar. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
23 lines
663 B
Python
23 lines
663 B
Python
from pydantic_settings import BaseSettings
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
DATABASE_URL: str = "postgresql://wealthy_user:wealthy_pass@db:5432/wealthysmart"
|
|
SECRET_KEY: str = "change-me-in-production"
|
|
ACCESS_TOKEN_EXPIRE_MINUTES: int = 60 * 24 * 30 # 30 days
|
|
ADMIN_USERNAME: str = "admin"
|
|
ADMIN_PASSWORD: str = "admin"
|
|
BCCR_API_EMAIL: str = ""
|
|
BCCR_API_TOKEN: str = ""
|
|
VAPID_PRIVATE_KEY: str = ""
|
|
VAPID_PUBLIC_KEY: str = ""
|
|
VAPID_CLAIM_EMAIL: str = "mailto:admin@wealth.cescalante.dev"
|
|
OPENAI_API_KEY: str = ""
|
|
AGENT_MODEL: str = "gpt-5.4-mini"
|
|
|
|
class Config:
|
|
env_file = ".env"
|
|
|
|
|
|
settings = Settings()
|