Add HydraRoute Manager web server — standalone domain management UI
Made-with: Cursor
This commit is contained in:
15
server/models.py
Normal file
15
server/models.py
Normal 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] = []
|
||||
Reference in New Issue
Block a user