README
Cloudflare infrastructure to (safely) expose the homelab services to the outside internet via Cloudflare Zero Trust Tunnel.
Initial Setup
- (pre-req) Cloudflare account and a domain name
- Transfer domain from registrar to Cloudflare by creating the NS records
NS lloyd.ns.cloudflare.comNS meadow.ns.cloudflare.com
- 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:
- (pre-req) have a
cloudflaredauthorized and running - deploy the app
- describe it in the services
tofu apply
TODO
- Automate token creation and/or deployment of
cloudflared.