feat: move cloudflare tunnel config to network.nix
This commit is contained in:
@@ -1,21 +0,0 @@
|
|||||||
{config, ...}: let
|
|
||||||
secrets = config.spacestation-secrets.lesser;
|
|
||||||
in {
|
|
||||||
imports = [];
|
|
||||||
|
|
||||||
virtualisation.oci-containers.containers.cloudflare-funnel = {
|
|
||||||
image = "cloudflare/cloudflared:latest";
|
|
||||||
autoStart = true;
|
|
||||||
extraOptions = [
|
|
||||||
"--network=host"
|
|
||||||
];
|
|
||||||
cmd = [
|
|
||||||
"tunnel"
|
|
||||||
"--no-autoupdate"
|
|
||||||
"run"
|
|
||||||
"--token"
|
|
||||||
secrets.capytal.cloudflare-funnel
|
|
||||||
];
|
|
||||||
environment = {};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,8 +1,9 @@
|
|||||||
{inputs, ...}: {
|
{inputs, ...}: {
|
||||||
imports = [
|
imports = [
|
||||||
./caddy.nix
|
|
||||||
./cloudflare.nix
|
./cloudflare.nix
|
||||||
|
./network.nix
|
||||||
./websites.nix
|
./websites.nix
|
||||||
|
|
||||||
./forgejo
|
./forgejo
|
||||||
./garage.nix
|
./garage.nix
|
||||||
./sqld.nix
|
./sqld.nix
|
||||||
|
|||||||
@@ -17,4 +17,26 @@
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
virtualisation.oci-containers.containers.cloudflare-funnel = let
|
||||||
|
secrets = config.spacestation-secrets.lesser;
|
||||||
|
in {
|
||||||
|
image = "cloudflare/cloudflared:latest";
|
||||||
|
autoStart = true;
|
||||||
|
extraOptions = [
|
||||||
|
"--network=host"
|
||||||
|
];
|
||||||
|
cmd = [
|
||||||
|
"tunnel"
|
||||||
|
"--no-autoupdate"
|
||||||
|
"run"
|
||||||
|
"--token"
|
||||||
|
secrets.capytal.cloudflare-funnel
|
||||||
|
];
|
||||||
|
environment = {};
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [
|
||||||
|
80
|
||||||
|
433
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user