1
Fork 0
satellite/hosts/nixos/lapetus/services/cloudflared.nix

17 lines
502 B
Nix
Raw Normal View History

2024-05-09 15:20:03 +02:00
{ config, ... }: {
sops.secrets.cloudflare_tunnel_credentials = {
sopsFile = ../secrets.yaml;
owner = config.services.cloudflared.user;
group = config.services.cloudflared.group;
};
satellite.cloudflared.tunnel = "347d9ead-a523-4f8b-bca7-3066e31e2952";
services.cloudflared = {
enable = true;
tunnels.${config.satellite.cloudflared.tunnel} = {
credentialsFile = config.sops.secrets.cloudflare_tunnel_credentials.path;
default = "http_status:404";
};
};
}