Cloudflare Mesh
Cloudflare Mesh connects your private networks to Cloudflare using the Cloudflare One Client.
- 1Copy the script below
- 2In HexOS, open Apps, find Cloudflare Mesh and choose Custom Install
- 3Paste, then press Install — full guide with screenshots
1{
12 "version": 5,
23 "script": {
4 "version": "0.1.0",
5 "changeLog": "Auto-generated draft from TrueNAS cloudflare-mesh 1.0.1"
6 },
37 "installation_questions": [
8 {
9 "question": "Mesh token",
10 "type": "password",
11 "key": "mesh_token",
12 "required": true
13 }
14 ],
15 "requirements": {
416 "locations": ["ApplicationsPerformance"],
517 "specifications": ["2CORE"],
618 "permissions": ["READ_WRITE_LOCATIONS"]
19 },
720 "ensure_directories_exists": [
21 {"path": "$LOCATION(ApplicationsPerformance)"},
22 {"path": "$LOCATION(ApplicationsPerformance)/cloudflare-mesh"},
23 {
24 "path": "$LOCATION(ApplicationsPerformance)/cloudflare-mesh/config",
25 "snapshot": {"id": "config"}
26 }
27 ],
28 "app_values": {
829 "cloudflare_mesh": {"mesh_token": "$QUESTION(mesh_token)"},
30 "storage": {
931 "config": "$HOST_PATH($LOCATION(ApplicationsPerformance)/cloudflare-mesh/config)"
32 },
1033 "resources": {"limits": {"cpus": 2, "memory": "$MEMORY(10%, 4096)"}}
34 }
35}
What this script does
Hover or tap a box to see the lines it explains.
-
Script format
Tells HexOS this is a version 5 install script, so it knows how to read the rest.
Line 2
-
Script revision
This copy of the script is revision 0.1.0. Latest change: “Auto-generated draft from TrueNAS cloudflare-mesh 1.0.1”.
Lines 3–6
-
Questions you'll be asked
Before installing, HexOS will ask you for: Mesh token. Your answers are slotted into the settings further down wherever you see $QUESTION(...).
Lines 7–14
-
Storage locations it needs
The app uses these HexOS storage locations: App storage (fast). If one isn't set up yet, HexOS will ask you to pick a place for it.
Line 16
-
Minimum hardware
Recommended minimum: 2 CPU cores.
Line 17
-
Permission to use your folders
Allows the app to read and write files inside the storage locations listed above — and nowhere else.
Line 18
-
Folders created on install
Creates the folders the app needs before it starts: App storage (fast) › cloudflare-mesh and App storage (fast) › cloudflare-mesh › config. Folders marked “snapshot” are included in HexOS snapshots, so you can roll them back.
Lines 20–27
-
Your answer: mesh token
Filled in with what you typed for “mesh token” when you installed.
Line 29
-
Where the app's settings is saved
Where the app's settings is saved on your server: App storage (fast) › cloudflare-mesh › config.
Line 31
-
Resource limits
Caps how much of your server the app can use: 2 CPU cores and 10% of your server's memory, but never more than 4 GB. This keeps one busy app from slowing everything else down.
Line 33