add wiki
This commit is contained in:
parent
fdd4c69bec
commit
aea3bbaec4
1 changed files with 32 additions and 0 deletions
32
hosts/rico2/services/wiki.nix
Normal file
32
hosts/rico2/services/wiki.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
config,
|
||||
wiki,
|
||||
...
|
||||
}: {
|
||||
services = {
|
||||
caddy.virtualHosts = {
|
||||
"wiki.adtya.xyz" = {
|
||||
extraConfig = ''
|
||||
root * ${wiki.packages.${config.nixpkgs.system}.default}/share/web
|
||||
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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue