2026-07-21 10:25:23 +02:00
|
|
|
from pydantic_settings import BaseSettings, SettingsConfigDict
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
|
|
|
model_config = SettingsConfigDict(env_file=".env", extra="ignore")
|
|
|
|
|
|
|
|
|
|
database_url: str = "sqlite+aiosqlite:///./plm_lottery.db"
|
|
|
|
|
|
|
|
|
|
electrum_host: str = "santantonio.sytes.net"
|
|
|
|
|
electrum_port: int = 50002
|
|
|
|
|
electrum_use_ssl: bool = True
|
|
|
|
|
|
|
|
|
|
xprv_encryption_key: str = ""
|
|
|
|
|
master_key_path: str = "./master.xprv.enc"
|
|
|
|
|
jwt_secret: str = ""
|
|
|
|
|
jwt_algorithm: str = "HS256"
|
|
|
|
|
jwt_expire_minutes: int = 60 * 24
|
|
|
|
|
admin_token: str = ""
|
|
|
|
|
|
2026-07-21 15:05:40 +02:00
|
|
|
# Every business/round parameter (bet amount, round duration/cooldown,
|
|
|
|
|
# min amount, fee rate, RBF timeout, fee address) lives in the round_config
|
|
|
|
|
# DB table instead (app/db/models.py RoundConfig, app/rounds/config.py) —
|
|
|
|
|
# editable live via the admin panel/API, no env var, no restart. Only true
|
|
|
|
|
# infra/secrets belong in this Settings class.
|
2026-07-21 10:25:23 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
settings = Settings()
|