refactor: if3
This commit is contained in:
parent
922e47c83c
commit
fdd4c69bec
2 changed files with 24 additions and 20 deletions
|
@ -21,18 +21,6 @@ in {
|
|||
local_port = 22;
|
||||
remote_port = 6002;
|
||||
};
|
||||
|
||||
"http.if3.adtya.xyz" = {
|
||||
type = "http";
|
||||
custom_domains = "if3.adtya.xyz";
|
||||
local_port = 80;
|
||||
};
|
||||
|
||||
"https.if3.adtya.xyz" = {
|
||||
type = "https";
|
||||
custom_domains = "if3.adtya.xyz";
|
||||
local_port = 443;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
if3,
|
||||
...
|
||||
}: {
|
||||
services.caddy.virtualHosts = {
|
||||
services = {
|
||||
caddy.virtualHosts = {
|
||||
"if3.adtya.xyz" = {
|
||||
extraConfig = ''
|
||||
root * ${if3.packages.${config.nixpkgs.system}.default}/share/web
|
||||
|
@ -13,4 +14,19 @@
|
|||
'';
|
||||
};
|
||||
};
|
||||
|
||||
frp.settings = {
|
||||
"http.if3.adtya.xyz" = {
|
||||
type = "http";
|
||||
custom_domains = "if3.adtya.xyz";
|
||||
local_port = 80;
|
||||
};
|
||||
|
||||
"https.if3.adtya.xyz" = {
|
||||
type = "https";
|
||||
custom_domains = "if3.adtya.xyz";
|
||||
local_port = 443;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue