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,14 +3,30 @@
if3,
...
}: {
services.caddy.virtualHosts = {
"if3.adtya.xyz" = {
extraConfig = ''
root * ${if3.packages.${config.nixpkgs.system}.default}/share/web
encode gzip
try_files {path} /index.html
file_server
'';
services = {
caddy.virtualHosts = {
"if3.adtya.xyz" = {
extraConfig = ''
root * ${if3.packages.${config.nixpkgs.system}.default}/share/web
encode gzip
try_files {path} /index.html
file_server
'';
};
};
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;
};
};
};
}