Skip to content

Cloudflare Tunnel

  1. You will need to first generate a token by following the steps here

    a. You can find the token here:

    Obtaining Cloudflare Tunnel token

    b. Once you copied the command it provides, paste it somewhere safe and then copy the long string of random text, that is your token

  2. Once you’ve generated the token, update the variable in inventory/group_vars/all/cloudflare.yml with the newly generated token:

    inventory/group_vars/all/cloudflare.yml
    cloudflare_tunnel_token: <token>
  3. Enable the container in inventory/group_vars/all/container_map.yml

  4. After the container has been started, you should now see an active Connector in your Cloudflare dashboard

  5. Follow the steps here to link containers to the tunnel, following the container map for the available container names and ports (use the container name as the “Service” name in the Cloudflare webgui, and append the port, e.g. overseerr:5055)

Example:

Cloudflare Tunnel config

See the Authentik docs for this project