Files
canopy-workloads/learning/app/config.py
T
kiskaadee 19a63811e2 refactor(learning): purge unnecessary system stats and docker integration
This commit removes the system monitoring, docker status, and bookmark
features from the learning board to reduce complexity and improve
security

- Remove `/system-stats`, and `/bookmarks` API endpoints and their
  controller logic
- Drop Python dependencies `psutils` and `docker` (and associated
  lockfile entries)
- Remove Docker socket proxy configuration, network bindings, and
  environment variables from `docker-compose.yml` and `config.py`
- Remove the read-only `/home` volume mount from the Docker compose file
2026-07-09 15:20:06 -05:00

21 lines
550 B
Python

from pydantic_settings import BaseSettings, SettingsConfigDict
from typing import Optional
class Settings(BaseSettings):
# Service Configuration
SERVICE_NAME: str = "learning-hub"
SERVICE_DOMAIN: str = "learning.example.com"
APP_PORT: int = 8000
# Infrastructure Networks
PROXY_NETWORK: str = "proxy-net"
# Application Secrets (Turso)
TURSO_DATABASE_URL: Optional[str] = None
TURSO_AUTH_TOKEN: Optional[str] = None
model_config = SettingsConfigDict(env_file=".env", extra="ignore")
settings = Settings()