from pydantic_settings import BaseSettings from typing import Optional import os class Settings(BaseSettings): """Configuration de l'application""" # API API_TITLE: str = "InnotexBoard - Debian Admin Panel" API_VERSION: str = "0.1.0" API_DESCRIPTION: str = "Interface d'administration légère pour Debian" # JWT SECRET_KEY: str = os.getenv("SECRET_KEY", "your-super-secret-key-change-in-production") ALGORITHM: str = "HS256" ACCESS_TOKEN_EXPIRE_MINUTES: int = 480 # 8 heures # CORS ALLOWED_ORIGINS: list = [ "http://localhost:3000", "http://localhost:3010", "http://localhost:5173", "http://127.0.0.1:3000", "http://127.0.0.1:3010", "http://127.0.0.1:5173", ] # Docker DOCKER_SOCKET: str = "/var/run/docker.sock" # Frontend FRONTEND_URL: str = os.getenv("FRONTEND_URL", "http://localhost:3000") class Config: env_file = ".env" settings = Settings()