refactor: move caddy and cloudflare to common folder
This commit is contained in:
@@ -4,25 +4,4 @@
|
||||
./forgejo.nix
|
||||
./websites.nix
|
||||
];
|
||||
|
||||
services.caddy.enable = true;
|
||||
|
||||
virtualisation.oci-containers.containers.cloudflare-tunnel = {
|
||||
image = "cloudflare/cloudflared:latest";
|
||||
autoStart = true;
|
||||
extraOptions = [
|
||||
"--network=host"
|
||||
];
|
||||
cmd = [
|
||||
"tunnel"
|
||||
"--no-autoupdate"
|
||||
"run"
|
||||
];
|
||||
environmentFiles = [
|
||||
config.sops.secrets."cloudflared/tunnel-env".path
|
||||
];
|
||||
};
|
||||
|
||||
# Caddy Ports
|
||||
networking.firewall.allowedTCPPorts = [80 433];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user