create_proxy_host
Create a new proxy host in Nginx Proxy Manager to forward web traffic from specified domains to a target server and port, with optional SSL configuration and security settings.
Instructions
Create a new proxy host
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain_names | Yes | List of domain names | |
| forward_scheme | No | http | |
| forward_host | Yes | IP or hostname to forward to | |
| forward_port | Yes | Port to forward to | |
| certificate_id | No | SSL certificate ID | |
| ssl_forced | No | ||
| block_exploits | No | ||
| advanced_config | No |
Implementation Reference
- src/npm_mcp/client.py:143-149 (handler)The handler method that sends a POST request to create a new proxy host.
async def create_proxy_host(self, host: ProxyHost) -> ProxyHost: response = await self._request( "POST", "/api/nginx/proxy-hosts", json=host.model_dump(exclude_none=True, exclude={"id", "created_on", "modified_on"}), ) return ProxyHost(**response.json())