Dominevo
Network

Cloudflare Tunnel

A public HTTPS address for your hub — the temporary Quick Tunnel that starts on its own, and your own permanent tunnel on your domain, step by step — plus what goes through the tunnel and the Cloudflare settings that break the app and Alexa.

A Cloudflare Tunnel gives your hub a public HTTPS address, with a real certificate and no port opened on your router. The hub connects out to Cloudflare, and Cloudflare forwards requests for your address down that connection.

Dominevo runs the tunnel itself. You do not install cloudflared or run a separate container: the Cloudflare addon fetches cloudflared, and in your own tunnel mode creates the tunnel and the DNS record in your Cloudflare account and keeps it running.

There are two modes:

ModeAccountAddressUse it for
Quick Tunnel (default)NoneRandom https://<random>.trycloudflare.com, changes on restartTrying remote access. Not for daily use.
Custom DomainFree Cloudflare account and a domainStable, on your domainRecommended. Everything that needs a permanent address.

Install the addon

The tunnel ships in the @dominevo/addon-cloudflare package, which also contains the Cloudflare TURN relay.

  1. Open Cluster → Addons and search for cloudflare.
  2. Install @dominevo/addon-cloudflare.
  3. Open Network → Remote Access. The Cloudflare Tunnel card is there.

If Remote Access shows no tunnel provider at all, its Add tunnel button opens the Addons page filtered to addons that provide a tunnel. They are listed under Available to install, with an Install action.

Quick Tunnel (default)

A fresh install needs no account and no setup. The addon starts a Quick Tunnel on its own, and the card shows a random address such as https://random-words.trycloudflare.com.

The address changes. Cloudflare issues a new one every time cloudflared restarts: when you restart or deploy the addon, when you toggle some diagnostic settings (they respawn cloudflared), or when it crashes and comes back. A link you shared stops working.

Cloudflare limits Quick Tunnels (see Cloudflare's documentation): no Server-Sent Events, at most 200 requests in flight, and no uptime guarantee. It is for testing.

Dominevo never picks it automatically. Because the address is temporary, the hub does not use it as the automatic Public endpoint or in the automatic App connections, so sign-in links, passkeys and notification pictures do not name an address that dies at the next restart. It stays visible on the card, labelled as a temporary address, and you can still choose it yourself on Network → Network Addresses. With only a Quick Tunnel, the automatic Public endpoint is your Tailscale name if you have one, otherwise a LAN address, which does not work away from home.

What to do next: create your own tunnel on a domain you own. It is free.

Do not register passkeys or link Alexa on a Quick Tunnel address.

Cloudflare's free plan is enough.

0. Prepare Cloudflare

  1. Create a free account at cloudflare.com.
  2. Add your domain to Cloudflare (Add a site, free plan) and, at your registrar, switch the domain's nameservers to the two Cloudflare gives you. Wait until Cloudflare shows the site as Active.

You need a domain you own. A subdomain of it, such as cams.example.com, is what the hub will use.

1. Create an API token

Dominevo uses a Cloudflare API token to create and manage the tunnel and its DNS record.

  1. In the Cloudflare dashboard, open your profile's API Tokens page and select Create Token.
  2. Choose the Custom token template.
  3. Add two permissions:
    • Account → Cloudflare Tunnel → Edit
    • Zone → DNS → Edit
  4. Under Account Resources, include your account. Under Zone Resources, include the domain you want to use.
  5. Create the token and copy it. Cloudflare shows it only once.

The token only needs these two permissions. Do not use your Global API Key.

2. Configure the tunnel in Dominevo

Open Network → Remote Access. On the Cloudflare Tunnel card:

  1. Set Mode to Custom Domain.
  2. Paste the token into Cloudflare API Token.
  3. Pick your domain under Zone. The list fills in once the token is accepted. If it stays empty, the token lacks Zone → DNS → Edit on that domain.
  4. Set Sub-domain, for example cams for cams.example.com. The default is camstack. Use @ or leave it empty for the domain itself.
  5. Leave the rest at its defaults: Local Address on Auto, Local port on Default, Skip TLS verification on.
  6. Select Start.
Remote Access tab with the Cloudflare Tunnel card connected in Custom Domain mode
Network → Remote Access: the Cloudflare Tunnel card, running. The domain shown is an example.

On the first start, Dominevo creates a tunnel named camstack in your account, points it at the hub's HTTPS port, and creates a CNAME DNS record for your sub-domain pointing at the tunnel. The card shows the public address once the tunnel is up. From then on the tunnel starts with the hub.

Why Skip TLS verification is on. Cloudflare's connector reaches your hub over HTTPS on your LAN, where the hub uses its private certificate. Visitors still get Cloudflare's real certificate. Turn it off only if the hub has a publicly trusted certificate for the name in SNI override.

Every setting on the card is described in Network settings → Cloudflare Tunnel.

3. Check the addresses

Open Network → Network Addresses. The tunnel appears as a Public row, and the summary above the table should show:

  • Public endpoint — your tunnel address, picked automatically.
  • App connections — your LAN address plus the tunnel.
  • Notification taps — the Dominevo app link, which now carries your tunnel address.
  • Internal — still your LAN address.

If you ticked other addresses earlier, the tunnel does not replace them. Select Use automatic next to a role, or tick the tunnel row yourself. See Your hub's addresses.

Then open https://cams.example.com from a phone on mobile data: you should get the Dominevo sign-in page with no certificate warning.

Set up the tunnel before registering passkeys. A passkey belongs to the Public endpoint it was registered on. Moving the Public endpoint to the tunnel means registering passkeys again.

Moving from Quick to your own tunnel

  • The public endpoint changes from the temporary address (or your LAN address) to your stable domain. Because the stable address is an ordinary tunnel address, the hub then picks it automatically as Public endpoint and in App connections.
  • Passkeys must be registered again on the new address, since a passkey belongs to the address it was registered on.
  • Links you shared from the Quick address stop working.

Going back to Quick

Set Tunnel mode back to Quick Tunnel in the card's settings. The addon restarts the tunnel on its own: you get a new random address, and the hub stops using your domain. Your token, zone and tunnel stay saved, so switching back to Custom Domain later reuses the same tunnel without entering anything again.

Switching mode does not touch your Cloudflare account: delete the tunnel and the DNS record there if you no longer want them.

What goes through the tunnel

Live video does not. It uses WebRTC, and away from home it needs a TURN relay: see TURN for live video. The Cloudflare addon also ships a Cloudflare TURN relay.

What does go through the tunnel, when your phone is away from home:

  • the app and the web viewer themselves, sign-in, and every API call the app makes to the hub;
  • event pictures (thumbnails and stored crops), fetched over HTTP from the hub's event media route (/addon/pipeline-analytics/event-media/…);
  • camera snapshots, fetched over HTTP from the hub's snapshot route (/addon/snapshot/media/<deviceId>.jpg);
  • the pictures and buttons inside notifications, which use the Public endpoint.

Recording playback is driven through the same WebRTC player as live video, so it follows the live-video path (TURN), not the tunnel.

Cloudflare settings that break things

Dominevo configures the tunnel so that everything works. Some settings you can add on top in the Cloudflare dashboard break parts of it.

Cloudflare Access in front of the hub. An Access login page stops everything that is not a person in a browser:

  • the native app cannot sign in through it;
  • Amazon's servers cannot complete Alexa account linking or send commands;
  • pictures and video in notifications fail to load on the phone.

Dominevo creates no Access policy. If you add one, keep it off the hostname the app and Alexa use. To protect only the admin pages in a browser, put Access on a second hostname, not on this one.

Bot protection and WAF challenges cause the same failures as Access when they challenge the app's or Amazon's requests. If the app or Alexa fails only through the tunnel, check Security → Events in the Cloudflare dashboard for blocked requests.

WebSockets must stay allowed for your zone. They are on by default; the app uses one for live updates.

Your own cloudflared instead

If you already run cloudflared elsewhere, for example as its own container, you can point a public hostname at the hub yourself:

  • Service: https://192.0.2.10:4443 (the hub's LAN address and HTTPS port).
  • No TLS Verify: on, unless the hub has a publicly trusted certificate.

Dominevo does not see a tunnel it does not run. Add the public address as a custom address on Network → Network Addresses, and tick it for App connections and Public endpoint. See When the hub cannot see its own address.

When it goes wrong

SymptomFix
Zone list stays emptyThe token lacks Zone → DNS → Edit on that domain. Create a new token.
The address shows Cloudflare error 1033The DNS record points at an old tunnel. Select Run cleanup under Clean up stale tunnels.
Requests through the tunnel stall for seconds at a timeUnder Diagnostics, set Transport protocol to HTTP/2.
The app works but live video is black away from homeExpected without TURN. See TURN for live video.

More in Network troubleshooting.

Then