Initial commit

This commit is contained in:
2026-05-17 05:22:06 +03:00
commit ca4d00c895
155 changed files with 45216 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
import os
from pathlib import Path
from pydantic_settings import BaseSettings
from functools import lru_cache
class Settings(BaseSettings):
DATABASE_URL: str = "postgresql+asyncpg://aegisone:aegisone_pass@localhost:5432/aegisone"
SECRET_KEY: str = "change-me-to-random-string"
SESSION_TTL: int = 3600
APP_ENV: str = "development"
LOG_LEVEL: str = "debug"
DOCS_DIR: str = str(Path(__file__).parent.parent.parent / "docs")
PERMISSIONS_DIR: str = str(Path(__file__).parent.parent.parent / "permissions")
UPLOADS_DIR: str = str(Path(__file__).parent.parent.parent / "uploads")
class Config:
env_file = ".env"
env_file_encoding = "utf-8"
@lru_cache()
def get_settings() -> Settings:
return Settings()