Cloudflared
Cloudflared is a client for Cloudflare Tunnel, a daemon that exposes private services through the Cloudflare edge.
- 1Copy the script below
- 2In HexOS, open Apps, find Cloudflared 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 cloudflared 2.0.23"
6 },
37 "installation_questions": [
8 {
9 "question": "Tunnel token",
10 "type": "password",
11 "key": "tunnel_token",
12 "required": true
13 }
14 ],
415 "requirements": {"locations": [], "specifications": ["2CORE"]},
16 "app_values": {
517 "cloudflared": {"tunnel_token": "$QUESTION(tunnel_token)"},
618 "resources": {"limits": {"cpus": 2, "memory": "$MEMORY(10%, 4096)"}}
19 }
20}
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 cloudflared 2.0.23”.
Lines 3–6
-
Questions you'll be asked
Before installing, HexOS will ask you for: Tunnel token. Your answers are slotted into the settings further down wherever you see $QUESTION(...).
Lines 7–14
-
Minimum hardware
Recommended minimum: 2 CPU cores.
Line 15
-
Your answer: tunnel token
Filled in with what you typed for “tunnel token” when you installed.
Line 17
-
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 18