Cloudflare Tunnel
cloudflare Gives apps their own hostnames through a Cloudflare Tunnel. Nothing on this machine needs to be reachable from the internet, and Cloudflare issues the certificates.
Setup
Create an API token
- In Cloudflare, open Manage account → Account API tokens for an account token, or My Profile → API Tokens for a user token.
- Choose Create Token, then a custom token.
- Add these permissions:
Scope Resource Access Account Cloudflare Tunnel Edit Zone DNS Edit Zone Zone Read - Under Account Resources, include your account. Under Zone Resources, include each zone apps will use.
Find your account ID
- Open one of your domains and copy Account ID from the API section of its Overview page.
Choose zones
Settings (7)
api_tokenAPI tokenRequiredCredentialIn Cloudflare, create a custom token under Manage account, Account API tokens, or under My Profile, API Tokens. Permissions: Account / Cloudflare Tunnel / Edit; Zone / DNS / Edit; Zone / Zone / Read. Account Resources: your account. Zone Resources: the primary zone, and each secondary zone. Pando uses it to create the tunnel and to point each app's hostname at it.
account_idAccount IDRequiredOn your domain's Overview page in Cloudflare, under API.
zonePrimary zoneRequiredA domain on your Cloudflare account. New apps are served at <app>.<zone>.
other_zonesSecondary zonesMore zones apps can be named in.
console_hostnameConsole hostnameWhere the console is served. Empty is the primary zone.
tunnel_idExisting tunnelAdvancedLeave empty and Pando creates a tunnel of its own. Or give a remotely managed tunnel's ID to use that one: Pando adds its rules and leaves the rest alone.
imagecloudflared imageAdvancedSet to run a different cloudflared release than this Pando ships with.