nix-config/hosts/nixedo/modules/cloudflared.nix
Oliver Davies ac7796044f Migrate bootstrap-with-tailwind to nixedo
Serve it publicly from nixedo via the Cloudflare Tunnel.

This is currently served locally on port 8000 using Docker until I
migrate the Caddy configuration, but this shows a real production
website being self hosted on my homelab and served via Cloudflare.
2025-04-18 02:07:57 +01:00

16 lines
337 B
Nix

{ config, ... }:
{
services.cloudflared = {
enable = true;
tunnels."e1514105-327f-4984-974e-e2fbaca76466" = {
credentialsFile = config.age.secrets.cloudflared.path;
default = "http_status:404";
ingress = {
"bootstrap-with-tailwind.oliverdavies.uk" = "http://localhost:8000";
};
};
};
}