mirror of
https://github.com/b3nw/nginx-proxy-manager-mcp.git
synced 2026-05-23 00:45:47 -05:00
fix: Allow locations to be null in ProxyHost model
This commit is contained in:
@@ -93,7 +93,7 @@ class ProxyHost(BaseModel):
|
|||||||
advanced_config: str = ""
|
advanced_config: str = ""
|
||||||
enabled: bool = True
|
enabled: bool = True
|
||||||
meta: dict[str, Any] = Field(default_factory=dict)
|
meta: dict[str, Any] = Field(default_factory=dict)
|
||||||
locations: list[ProxyHostLocation] = Field(default_factory=list)
|
locations: list[ProxyHostLocation] | None = None
|
||||||
# Optional expanded relations
|
# Optional expanded relations
|
||||||
owner: Owner | None = None
|
owner: Owner | None = None
|
||||||
certificate: Certificate | None = None
|
certificate: Certificate | None = None
|
||||||
|
|||||||
Reference in New Issue
Block a user