Files
minerops/backend/app/config.py
T

26 lines
593 B
Python

from pydantic_settings import BaseSettings
class Settings(BaseSettings):
app_name: str = "MinerOps Console"
app_env: str = "development"
app_timezone: str = "America/Winnipeg"
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"
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()