Add HydraRoute Manager web server — standalone domain management UI

Made-with: Cursor
This commit is contained in:
Андрей Бобырев
2026-04-24 11:37:24 +03:00
commit a63329af81
14 changed files with 833 additions and 0 deletions

15
server/models.py Normal file
View File

@@ -0,0 +1,15 @@
from pydantic import BaseModel
from typing import Literal
class DomainGroup(BaseModel):
name: str; entries: list[str]; policy: str
entry_type: Literal["domain","geosite"] = "domain"; enabled: bool = True
class IpGroup(BaseModel):
name: str; entries: list[str]; policy: str
entry_type: Literal["ip","geoip"] = "ip"; enabled: bool = True
class HydraConfig(BaseModel):
version: str = "1.0"
domain_groups: list[DomainGroup] = []
ip_groups: list[IpGroup] = []