- FastAPI backend with CRUD for Veeam instances - Veeam REST API client supporting v9.5-v13 (legacy + OAuth2) - Multi-version detection and auth fallback - SQLite caching layer - Web dashboard with summary cards, instance list, detail tabs - Docker packaging
21 lines
486 B
Python
21 lines
486 B
Python
from pydantic_settings import BaseSettings
|
|
from pathlib import Path
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
app_name: str = "Veeam Dashboard"
|
|
db_url: str = "sqlite+aiosqlite:///./veeam_dashboard.db"
|
|
cache_ttl: int = 60
|
|
request_timeout: int = 30
|
|
host: str = "0.0.0.0"
|
|
port: int = 8080
|
|
secret_key: str = "change-me-in-production"
|
|
|
|
class Config:
|
|
env_file = ".env"
|
|
env_file_encoding = "utf-8"
|
|
|
|
|
|
settings = Settings()
|
|
BASE_DIR = Path(__file__).parent
|