Skip to content

Commit 98db370

Browse files
committed
Add certUrl support: required for external agent connections (thanks si458)
1 parent 21ef411 commit 98db370

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ Forward port `4430` on your router to your HA host IP.
8787
| Option | Default | Description |
8888
|--------|---------|-------------|
8989
| `data_path` | `/data/meshcentral-data` | Where MeshCentral stores its data |
90-
| `hostname` | *(auto)* | Public hostname for agent connections — set this to your external URL (Cloudflare, Nabu Casa etc.) |
90+
| `hostname` | *(auto)* | Public hostname for agent connections — set this to your external URL |
91+
| `cert_url` | *(empty)* | **Required for external agent connections** — set to your full external URL (e.g. `https://mesh.yourdomain.com`). MeshCentral uses this to verify agent connections. Without this, agents outside your local network cannot connect. |
9192
| `allow_device_sharing` | `false` | Allow device sharing with other users |
9293

9394
## Ports

meshcentral/config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@
1616
"options": {
1717
"data_path": "/data/meshcentral-data",
1818
"hostname": "",
19+
"cert_url": "",
1920
"allow_device_sharing": false
2021
},
2122
"schema": {
2223
"data_path": "str",
2324
"hostname": "str",
25+
"cert_url": "str",
2426
"allow_device_sharing": "bool"
2527
},
2628
"map": [

meshcentral/run.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Read config from HA add-on options
44
HOSTNAME=$(bashio::config 'hostname')
55
DATA_PATH=$(bashio::config 'data_path')
6+
CERT_URL=$(bashio::config 'cert_url')
67
ALLOW_SHARING=$(bashio::config 'allow_device_sharing')
78

89
# Use HA hostname if not set
@@ -27,7 +28,6 @@ if [ ! -f "$CONFIG_FILE" ]; then
2728
"port": 443,
2829
"redirPort": 80,
2930
"tlsOffload": true,
30-
"_comment_tlsOffload": "Set to true because HA handles TLS via Ingress/Nabu Casa",
3131
"selfUpdate": false,
3232
"cleanErrorLog": 5
3333
},
@@ -36,7 +36,8 @@ if [ ! -f "$CONFIG_FILE" ]; then
3636
"title": "MeshCentral",
3737
"title2": "Home Assistant",
3838
"newAccounts": false,
39-
"_comment_newAccounts": "Set to true only to create your first admin account, then set back to false",
39+
"_comment_newAccounts": "Set to true temporarily to create your first admin account",
40+
"certUrl": "${CERT_URL}",
4041
"mstsc": false
4142
}
4243
}

0 commit comments

Comments
 (0)