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.
16 lines
337 B
Nix
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";
|
|
};
|
|
};
|
|
};
|
|
}
|