17 lines
502 B
Nix
17 lines
502 B
Nix
{ 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";
|
|
};
|
|
};
|
|
}
|