Files
dotfiles/nixos/tako/services/caddy.nix
2026-02-01 19:51:51 +05:30

21 lines
430 B
Nix

{...}: {
services = {
caddy = {
enable = true;
globalConfig = ''
servers {
metrics
}
'';
extraConfig = ''
(auth) {
forward_auth localhost:5555 {
uri /api/authz/forward-auth?authelia_url=https://auth.darksailor.dev
copy_headers Remote-User Remote-Groups Remote-Name Remote-Email
}
}
'';
};
};
}