Enable or Disable Website HTTPS
enable_website_httpsBind an existing 1Panel SSL certificate to a website to enable HTTPS, HSTS, or HTTP3; set enable false to disable HTTPS.
Instructions
Bind an existing 1Panel SSL certificate (ssl_id) to enable HTTPS/HSTS/HTTP3 on a website, or disable HTTPS (enable: false).
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": {
"website_id": "<website_id>"
},
"name": "enable_website_https"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hsts | No | Enable Strict-Transport-Security header. | |
| http3 | No | Enable HTTP/3 (QUIC). | |
| enable | No | Set true to enable HTTPS or false to disable HTTPS. | |
| 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 | 1Panel SSL certificate ID (from list_ssls). Required when enable is true. | |
| website_id | Yes | Numeric website ID. | |
| http_config | No | HTTP handling policy when HTTPS is enabled. | HTTPToHTTPS |
| https_ports | No | HTTPS listen ports (defaults to [443]). | |
| ssl_protocol | No | Enabled TLS protocol versions. | |
| hsts_include_subdomains | No | Include subdomains in HSTS header. |