init
This commit is contained in:
15
server/config.py
Normal file
15
server/config.py
Normal file
@@ -0,0 +1,15 @@
|
||||
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"
|
||||
Reference in New Issue
Block a user