Initial monorepo structure

This commit is contained in:
Арсентьев Александр
2026-08-06 11:23:37 +03:00
commit 07dbde2a0e
240 changed files with 212717 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
"""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()