configuration.nix/hosts/rico0/services/apps/proofs.nix

35 lines
758 B
Nix
Raw Normal View History

2024-09-14 19:55:57 +05:30
_:
let
inherit (import ../../../shared/caddy-helpers.nix) logFormat;
domainName = "proofs.adtya.xyz";
in
{
2024-07-03 17:03:34 +05:30
services = {
caddy.virtualHosts = {
2024-09-14 19:55:57 +05:30
"${domainName}" = {
2024-10-27 23:09:50 +05:30
inherit logFormat;
2024-07-03 17:03:34 +05:30
extraConfig = ''
redir https://keyoxide.org/hkp/51E4F5AB1B82BE45B4229CC243A5E25AA5A27849
'';
};
};
frp.settings.proxies = [
{
2024-09-14 19:55:57 +05:30
name = "http.${domainName}";
2024-07-03 17:03:34 +05:30
type = "http";
2024-09-14 19:55:57 +05:30
customDomains = [ "${domainName}" ];
2024-07-03 17:03:34 +05:30
localPort = 80;
transport.useCompression = true;
}
{
2024-09-14 19:55:57 +05:30
name = "https.${domainName}";
2024-07-03 17:03:34 +05:30
type = "https";
2024-09-14 19:55:57 +05:30
customDomains = [ "${domainName}" ];
2024-07-03 17:03:34 +05:30
localPort = 443;
transport.useCompression = true;
}
];
};
}