Space Works · Platform administration

Free hosting behind Cloudflare

The installer's HTTPS question has a fourth choice, Cloudflare Tunnel. The bundled stack runs on your machine, a small connector (cloudflared) makes an outbound connection to Cloudflare, and visitors reach your site through Cloudflare. Nothing listens on a public port.

What you need

  • A domain on Cloudflare's free plan, and a tunnel token from Cloudflare (the installer asks for it and hides what you type).
  • Cloudflare R2 buckets and keys for files: this mode always uses outside storage.
  • An outside email service for sign-in and reminder mail.

Set it up

  1. Run the installer and, at the HTTPS question, choose 4) Cloudflare Tunnel.
  2. Enter your domain and paste the tunnel token.
  3. Enter the R2 bucket details for file storage.
  4. Confirm the summary. In Cloudflare, point the tunnel's public hostname at the connector and check the site opens over HTTPS.

What it changes

  • Caddy still routes everything and serves plain HTTP on the private network; Cloudflare ends the HTTPS.
  • The control plane's web route and the SSH-tunnel option are off in this mode.
  • The server trusts Cloudflare's visitor address so rate limits and lockouts see the real visitor.

Cloudflare Workers alone cannot host the backend. The full step by step, including DNS, R2 CORS, backups and troubleshooting, is in the hosting guide docs/hosting/cloudflare-free.md.

Who can do this: the host operator, with administrator access to the server.

From SpaceWorks/frontend/src/help-content/en/host-operator/cloudflare-free-hosting.md at 6d570c6, updated 2026-12-02. Suggest a change