mirror of
https://github.com/b3nw/nginx-proxy-manager-mcp.git
synced 2026-06-15 00:59:40 -05:00
feat: Add proxy host creation and access list tools (#1)
Add MCP tools for creating proxy hosts and listing access lists, with configurable defaults via environment variable. New tools: - create_proxy_host: Create new proxy hosts with SSL, access control, and websocket support - list_access_lists: List available access lists for use in proxy host creation New features: - NPM_PROXY_DEFAULTS env var for configurable default values (certificate_id, access_list_id, ssl settings, etc.)
This commit is contained in:
+13
-1
@@ -34,6 +34,18 @@ class Owner(BaseModel):
|
||||
roles: list[str]
|
||||
|
||||
|
||||
class AccessList(BaseModel):
|
||||
"""Access list for authentication/IP restrictions."""
|
||||
|
||||
id: int
|
||||
created_on: datetime
|
||||
modified_on: datetime
|
||||
owner_user_id: int = 0
|
||||
name: str
|
||||
satisfy_any: bool = False
|
||||
pass_auth: bool = False
|
||||
|
||||
|
||||
class Certificate(BaseModel):
|
||||
"""SSL Certificate information."""
|
||||
|
||||
@@ -81,7 +93,7 @@ class ProxyHost(BaseModel):
|
||||
advanced_config: str = ""
|
||||
enabled: bool = True
|
||||
meta: dict[str, Any] = Field(default_factory=dict)
|
||||
locations: list[ProxyHostLocation] = Field(default_factory=list)
|
||||
locations: list[ProxyHostLocation] | None = None
|
||||
# Optional expanded relations
|
||||
owner: Owner | None = None
|
||||
certificate: Certificate | None = None
|
||||
|
||||
Reference in New Issue
Block a user