Initial monorepo structure
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user