refactor proofs
This commit is contained in:
parent
b42d408969
commit
03c6aff8fb
3 changed files with 29 additions and 21 deletions
|
@ -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}
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
|
|
29
hosts/rico2/services/proofs.nix
Normal file
29
hosts/rico2/services/proofs.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue