feat: project skeleton

- infra (k8s, kind, helm, docker) backbone is implemented
- security: implementation + unit tests are done
This commit is contained in:
2026-01-21 03:14:09 -05:00
commit 0d99ba0b31
46 changed files with 3468 additions and 0 deletions

34
app/config.py Normal file
View File

@@ -0,0 +1,34 @@
"""Application configuration via pydantic-settings."""
from pydantic_settings import BaseSettings, SettingsConfigDict
class Settings(BaseSettings):
"""Application settings loaded from environment variables."""
model_config = SettingsConfigDict(
env_file=".env",
env_file_encoding="utf-8",
case_sensitive=False,
)
# Database
database_url: str
# Redis
redis_url: str = "redis://localhost:6379/0"
# JWT
jwt_secret_key: str
jwt_algorithm: str = "HS256"
jwt_issuer: str = "incidentops"
jwt_audience: str = "incidentops-api"
access_token_expire_minutes: int = 15
refresh_token_expire_days: int = 30
# Application
debug: bool = False
api_v1_prefix: str = "/v1"
settings = Settings()