Create Static or Reverse-Proxy Website
create_websiteCreate a static or reverse-proxy website on a selected 1Panel node, optionally binding an existing SSL certificate for immediate HTTPS.
Instructions
Create a static or reverse-proxy website in the default website group on the selected node. Optionally bind an existing SSL certificate ID (ssl_id) immediately after creation.
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": "<domain>",
"website_type": "<website_type>"
},
"name": "create_website"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| IPV6 | No | Enable IPv6 listener on the website. | |
| port | No | HTTP listen port; when omitted, uses the target node's installed OpenResty HTTP port. | |
| http3 | No | Enable HTTP/3 (QUIC) when `ssl_id` is provided. | |
| domain | Yes | Primary domain name (e.g. app.example.com). | |
| nodeId | No | Target node ID: "local" for the Main Node, or a numeric string ID (e.g. "3") from list_nodes. | local |
| ssl_id | No | Optional existing 1Panel SSL certificate ID to bind for HTTPS immediately after creation. | |
| http_config | No | HTTP redirect behavior when `ssl_id` is provided. | HTTPToHTTPS |
| website_type | Yes | Website type: "static" or "proxy". | |
| proxy_address | No | Upstream URL when website_type is "proxy" (e.g. "http://127.0.0.1:8080"). |