configuration.nix/hosts/rico2/services/caddy.nix
2023-10-28 03:55:59 +05:30

27 lines
508 B
Nix

{
secrets,
if3,
...
}: {
services.caddy = {
enable = true;
inherit (secrets.caddy_config) email;
virtualHosts = {
"proofs.adtya.xyz" = {
extraConfig = ''
redir https://keyoxide.org/hkp/${secrets.users.primary.pgpFingerprint}
'';
};
"if3.adtya.xyz" = {
extraConfig = ''
root * ${if3.packages.web}/share/web
encode gzip
try_files {path} /index.html
file_server
'';
};
};
};
}