31 lines
780 B
Python
31 lines
780 B
Python
from pydantic_settings import BaseSettings
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
app_name: str = "MinerOps Console"
|
|
app_env: str = "development"
|
|
app_timezone: str = "America/Winnipeg"
|
|
minerops_build_commit: str | None = None
|
|
minerops_build_version: str | None = None
|
|
|
|
postgres_db: str = "minerops"
|
|
postgres_user: str = "minerops"
|
|
postgres_password: str
|
|
postgres_host: str = "postgres"
|
|
postgres_port: int = 5432
|
|
|
|
redis_url: str = "redis://redis:6379/0"
|
|
|
|
minerops_agent_id: str = "plexus-windows-agent"
|
|
minerops_agent_shared_secret: str = ""
|
|
|
|
jwt_secret_key: str
|
|
jwt_access_token_minutes: int = 30
|
|
jwt_refresh_token_days: int = 14
|
|
|
|
class Config:
|
|
env_file = ".env"
|
|
extra = "ignore"
|
|
|
|
|
|
settings = Settings() |