from pydantic_settings import BaseSettings from typing import List class Settings(BaseSettings): PROJECT_NAME: str = "License Server" VERSION: str = "1.0.0" API_PREFIX: str = "/api" SECRET_KEY: str = "your-secret-key-change-this-in-production" ALGORITHM: str = "HS256" ACCESS_TOKEN_EXPIRE_MINUTES: int = 30 DATABASE_URL: str = "postgresql://license_user:license_password@db:5432/license_db" ALLOWED_ORIGINS: List[str] = [ "https://api-software-undso.z5m7q9dk3ah2v1plx6ju.com", "https://admin-panel-undso.z5m7q9dk3ah2v1plx6ju.com" ] DEBUG: bool = False MAX_ACTIVATIONS_PER_LICENSE: int = 5 HEARTBEAT_INTERVAL_MINUTES: int = 15 OFFLINE_GRACE_PERIOD_DAYS: int = 7 class Config: env_file = ".env" case_sensitive = True extra = "ignore" # Ignore extra environment variables settings = Settings()