colin
d13bcc49ab
longer-term, i want hosts/by-name to define host-specific data that's accessible via the other hosts (things like pubkeys). also the secrets management needs some rethinking. there's really not much point in me specifiying where *exactly* a secret comes from at its use site. i should really be specifying secret store manifests; i.e. "servo.yaml contains secrets X Y and Z", and leaving the rest up to auto-computing.
18 lines
423 B
Nix
18 lines
423 B
Nix
{ ... }:
|
|
{
|
|
sane.services.kiwix-serve = {
|
|
enable = true;
|
|
port = 8013;
|
|
zimPaths = [ "/var/lib/uninsane/www-archive/wikipedia_en_all_maxi_2022-05.zim" ];
|
|
};
|
|
|
|
services.nginx.virtualHosts."w.uninsane.org" = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
# inherit kTLS;
|
|
locations."/".proxyPass = "http://127.0.0.1:8013";
|
|
};
|
|
|
|
sane.services.trust-dns.zones."uninsane.org".inet.CNAME."w" = "native";
|
|
}
|