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,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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue