Server/caddy: serve the NixOS manual
This commit is contained in:
parent
863840b2b1
commit
e1f4b528c6
1 changed files with 12 additions and 1 deletions
|
|
@ -1,4 +1,6 @@
|
||||||
{...}: {
|
{config, ...}: let
|
||||||
|
manualHostname = "manual.everest.tailscale";
|
||||||
|
in {
|
||||||
services.caddy = {
|
services.caddy = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
|
@ -7,5 +9,14 @@
|
||||||
bind 100.73.96.48
|
bind 100.73.96.48
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
virtualHosts.nixos-manual = {
|
||||||
|
hostName = manualHostname;
|
||||||
|
extraConfig = ''
|
||||||
|
import tailscale
|
||||||
|
file_server
|
||||||
|
root * ${config.system.build.manual.manualHTML}/share/doc/nixos
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
services.dnsmasq.settings.cname = ["${manualHostname},everest"];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue