nixos-servers/services/nix-cache/proxy.nix
Torjus Håkestad e366a05204
Some checks failed
Run nix flake check / flake-check (push) Failing after 9m1s
Periodic flake update / flake-update (push) Successful in 1m33s
Fix caddy logging
2025-01-28 00:49:22 +01:00

22 lines
428 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
}
nix-cache.home.2rjus.net {
log {
output file /var/log/caddy/nix-cache.log {
mode 644
}
}
reverse_proxy http://localhost:5000
}
'';
};
}