Torjus Håkestad 9236d6aef7
Some checks failed
Run nix flake check / flake-check (push) Has been cancelled
Fix caddyfile for nix-cache
2025-06-01 02:34:31 +02:00

26 lines
469 B
Nix

{ pkgs, ... }:
{
services.caddy = {
enable = true;
package = pkgs.unstable.caddy;
configFile = pkgs.writeText "Caddyfile" ''
{
acme_ca https://ca.home.2rjus.net/acme/acme/directory
metrics
}
metrics /metrics
nix-cache.home.2rjus.net {
log {
output file /var/log/caddy/nix-cache.log {
mode 644
}
}
reverse_proxy http://localhost:5000
}
'';
};
}