Connector-Go Config Reference
Based on `connector-go/config.go` defaults and validation.
{
"panel": {
"url": "https://panel.example.com",
"allowedUrls": ["https://panel.example.com"]
},
"connector": {
"id": 1,
"token": "YOUR_CONNECTOR_TOKEN",
"name": "node-1"
},
"sftp": {
"host": "0.0.0.0",
"port": 8312,
"directory": "/var/lib/cpanel/volumes",
"hostKeyPath": "./sftp_host_rsa.key"
},
"docker": {
"network": {
"name": "cpanel_nw",
"network_mode": "cpanel_nw",
"driver": "bridge",
"interface": "172.18.0.1",
"dns": ["1.1.1.1", "1.0.0.1"]
}
}
}
Validation Notes
- Connector will fail fast if `panel.url`, `connector.id`, or `connector.token` are missing.
- Allowed origins are normalized; if none provided, connector falls back to `panel.url` origin.
- SFTP and Docker network values are auto-filled with defaults when omitted.
