npm_create_proxy_host
Create a new proxy host in Nginx Proxy Manager to route domain traffic to backend services, including custom nginx configuration and per-location rules.
Instructions
Create a new proxy host in Nginx Proxy Manager. Supports advanced_config for custom nginx configuration and locations with per-location advanced_config.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"domain_names": "<domain_names>",
"forward_scheme": "<forward_scheme>",
"forward_host": "<forward_host>",
"forward_port": "<forward_port>"
},
"name": "npm_create_proxy_host"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | No | Enable or disable the host | |
| locations | No | Custom location blocks with per-location advanced_config | |
| ssl_forced | No | Force HTTPS | |
| domain_names | Yes | List of domain names | |
| forward_host | Yes | Target host to forward to | |
| forward_port | Yes | Target port to forward to | |
| hsts_enabled | No | Enable HSTS | |
| http2_support | No | Enable HTTP/2 | |
| access_list_id | No | Access list ID (0 for none) | |
| block_exploits | No | Block common exploits | |
| certificate_id | No | SSL certificate ID (0 for none, "new" for new certificate) | |
| forward_scheme | Yes | Forwarding scheme | |
| advanced_config | No | Custom nginx configuration (advanced_config) | |
| caching_enabled | No | Enable caching | |
| hsts_subdomains | No | Include subdomains in HSTS | |
| trust_forwarded_proto | No | Trust X-Forwarded-Proto header | |
| allow_websocket_upgrade | No | Allow WebSocket upgrade |