2022-12-16 02:25:57 +00:00
|
|
|
{ ... }:
|
|
|
|
{
|
|
|
|
sane.services.kiwix-serve = {
|
|
|
|
enable = true;
|
|
|
|
port = 8013;
|
2022-12-16 05:58:51 +00:00
|
|
|
zimPaths = [ "/var/lib/uninsane/www-archive/wikipedia_en_all_maxi_2022-05.zim" ];
|
2022-12-16 02:25:57 +00:00
|
|
|
};
|
2022-12-17 00:52:48 +00:00
|
|
|
|
|
|
|
services.nginx.virtualHosts."w.uninsane.org" = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
# inherit kTLS;
|
|
|
|
locations."/".proxyPass = "http://127.0.0.1:8013";
|
|
|
|
};
|
2022-12-17 01:29:12 +00:00
|
|
|
|
2023-01-02 13:23:52 +00:00
|
|
|
sane.services.trust-dns.zones."uninsane.org".inet.CNAME."w" = "native";
|
2022-12-16 02:25:57 +00:00
|
|
|
}
|