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

30 lines
625 B
Nix

{ config
, secrets
, ...
}: {
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;
proxy_protocol_version = "v2";
};
"https.proofs.adtya.xyz" = {
type = "https";
custom_domains = "proofs.adtya.xyz";
local_port = 443;
proxy_protocol_version = "v2";
};
};
};
}