Files
clickthrough/server/config.py
2026-04-05 19:15:12 +02:00

16 lines
333 B
Python

from pathlib import Path
from pydantic import BaseSettings
class ServerSettings(BaseSettings):
grid_rows: int = 4
grid_cols: int = 4
cell_margin_px: int = 4
storage_dir: Path = Path("data/screenshots")
default_timeout: int = 10
class Config:
env_prefix = "CLICKTHROUGH_"
env_file = ".env"