Files
homelab/cloudflare/README.md

1017 B

README

Cloudflare infrastructure to (safely) expose the homelab services to the outside internet via Cloudflare Zero Trust Tunnel.

Initial Setup

  1. (pre-req) Cloudflare account and a domain name
  2. Transfer domain from registrar to Cloudflare by creating the NS records
    • NS lloyd.ns.cloudflare.com
    • NS meadow.ns.cloudflare.com
  3. Create an API token with the following access rules
    • DNS:Edit
    • Cloudflare Tunnel:Edit
    • Zero Trust:Edit
    • Access: Apps and Policies:Edit

Usage

To add a new app/service and expose it:

  1. (pre-req) have a cloudflared authorized and running
  2. deploy the app
  3. describe it in the services
  4. tofu apply

TODO

  • Automate token creation and/or deployment of cloudflared.