configuration.nix/hosts/rico2/services/caddy.nix

28 lines
508 B
Nix
Raw Normal View History

2023-10-28 03:55:59 +05:30
{
secrets,
if3,
...
}: {
2023-06-02 12:27:40 +05:30
services.caddy = {
enable = true;
2023-07-11 22:41:18 +05:30
inherit (secrets.caddy_config) email;
2023-06-02 23:40:36 +05:30
2023-10-28 03:55:59 +05:30
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
'';
};
2023-06-02 23:40:36 +05:30
};
2023-06-02 12:27:40 +05:30
};
}