refactor: if3

This commit is contained in:
Adithya 2023-10-28 05:13:01 +05:30
parent 922e47c83c
commit fdd4c69bec
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
2 changed files with 24 additions and 20 deletions

View file

@ -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;
};
};
};
}

View file

@ -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;
};
};
};
}