Skip to content

cloudflared

Configure and deploy Cloudflare Tunnel

Builds cloudflared from nixpkgs and creates an s6 service with credentials file and tunnel configuration.

Variables

Variable Type Default Description
cloudflared_config dict Ingress rules and other tunnel configuration (merged with base tunnel config). See defaults/main.yml#L9-L14 for an example.
cloudflared_credentials string {"AccountTag":"","TunnelSecret":"","TunnelID":"","Endpoint":""} JSON content of the Cloudflare Tunnel credentials file
cloudflared_enabled boolean false Enable the cloudflared tunnel service
cloudflared_group string cloudflared System group for the cloudflared service
cloudflared_package string nixpkgs/c27cdad491a991b11ed731760aa2ef8db0cb0410#cloudflared Nix package attribute for cloudflared
cloudflared_package_path path /opt/cloudflared Nix build output path for cloudflared
cloudflared_tunnel string 00000000-0000-0000-0000-000000000000 Tunnel ID for Cloudflare Tunnel
cloudflared_user string cloudflared System user for the cloudflared service