NixOS-Config/nixos/server/cloudflared.nix

17 lines
423 B
Nix

{pkgs, outputs, ...}: {
services.cloudflared = {
enable = true;
tunnels = {
"${outputs.secrets.flareTunnelName}" = {
credentialsFile = "${pkgs.writeText "credentials" outputs.secrets.flareTunnelApi}";
default = "http_status:404";
ingress = {
"*.${outputs.secrets.jimDomain}" = {
service = "https://localhost:443";
};
};
};
};
};
}