configuration.nix/hosts/rico2/services/proofs.nix

29 lines
547 B
Nix
Raw Normal View History

2023-11-04 16:12:45 +05:30
{ config
, secrets
, ...
2023-10-28 05:12:08 +05:30
}: {
services = {
caddy.virtualHosts = {
"proofs.adtya.xyz" = {
extraConfig = ''
redir https://keyoxide.org/hkp/${secrets.users.primary.pgpFingerprint}
'';
};
};
frp.settings = {
"http.proofs.adtya.xyz" = {
type = "http";
custom_domains = "proofs.adtya.xyz";
local_port = 80;
};
"https.proofs.adtya.xyz" = {
type = "https";
custom_domains = "proofs.adtya.xyz";
local_port = 443;
};
};
};
}