24 lines
595 B
Python
24 lines
595 B
Python
from pydantic_settings import BaseSettings, SettingsConfigDict
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
app_host: str = "0.0.0.0"
|
|
app_port: int = 8088
|
|
|
|
scan_subnet: str = "192.168.88.0/24"
|
|
scan_interval_seconds: int = 15
|
|
scan_timeout_seconds: float = 0.35
|
|
scan_concurrency: int = 120
|
|
|
|
dns_log_path: str = ""
|
|
|
|
core_router_ip: str = "192.168.88.1"
|
|
core_router_name: str = "RB4011"
|
|
core_switch_ip: str = "192.168.88.2"
|
|
core_switch_name: str = "CRS328-24P"
|
|
|
|
model_config = SettingsConfigDict(env_file=".env", env_file_encoding="utf-8")
|
|
|
|
|
|
settings = Settings()
|