2023-10-28 05:13:11 +05:30
|
|
|
{
|
2023-11-03 18:16:02 +05:30
|
|
|
pkgs,
|
2023-10-28 05:13:11 +05:30
|
|
|
wiki,
|
|
|
|
...
|
2023-11-03 18:16:02 +05:30
|
|
|
}: let
|
|
|
|
system = pkgs.system;
|
|
|
|
in {
|
2023-10-28 05:13:11 +05:30
|
|
|
services = {
|
|
|
|
caddy.virtualHosts = {
|
|
|
|
"wiki.adtya.xyz" = {
|
|
|
|
extraConfig = ''
|
2023-11-03 18:16:02 +05:30
|
|
|
root * ${wiki.packages.${system}.default}/share/web
|
2023-10-28 05:13:11 +05:30
|
|
|
encode gzip
|
|
|
|
try_files {path} /index.html
|
|
|
|
file_server
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
frp.settings = {
|
|
|
|
"http.wiki.adtya.xyz" = {
|
|
|
|
type = "http";
|
|
|
|
custom_domains = "wiki.adtya.xyz";
|
|
|
|
local_port = 80;
|
|
|
|
};
|
|
|
|
|
|
|
|
"https.wiki.adtya.xyz" = {
|
|
|
|
type = "https";
|
|
|
|
custom_domains = "wiki.adtya.xyz";
|
|
|
|
local_port = 443;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|