refactor proofs

This commit is contained in:
Adithya 2023-10-28 05:12:08 +05:30
parent b42d408969
commit 03c6aff8fb
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
3 changed files with 29 additions and 21 deletions

View file

@ -1,19 +1,10 @@
{
config,
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}
'';
};
};
};
}

View file

@ -46,18 +46,6 @@ in {
local_port = 443;
};
"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;
};
"http.if3.adtya.xyz" = {
type = "http";
custom_domains = "if3.adtya.xyz";

View file

@ -0,0 +1,29 @@
{
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;
};
"https.proofs.adtya.xyz" = {
type = "https";
custom_domains = "proofs.adtya.xyz";
local_port = 443;
};
};
};
}