Files
platform-project/platform/backend/app/settings.py
Арсентьев Александр 07dbde2a0e Initial monorepo structure
2026-08-06 11:23:37 +03:00

25 lines
734 B
Python

"""Platform settings."""
from pydantic_settings import BaseSettings, SettingsConfigDict
from functools import lru_cache
class Settings(BaseSettings):
model_config = SettingsConfigDict(env_file=".env", env_file_encoding="utf-8", case_sensitive=True)
APP_NAME: str = "Platform"
APP_VERSION: str = "1.0.0"
APP_DEBUG: bool = True
APP_CORS_ORIGINS: str = "http://localhost:5173,http://localhost:5174,http://localhost:8000,http://localhost:8001"
DATABASE_URL: str = "sqlite:///./platform.db"
JWT_SECRET_KEY: str = "platform-secret-key-change-in-production"
JWT_ALGORITHM: str = "HS256"
JWT_ACCESS_TOKEN_EXPIRE_MINUTES: int = 480
@lru_cache()
def get_settings() -> Settings:
return Settings()