2023-12-16 01:54:34 +00:00
|
|
|
# how to update wikipedia snapshot:
|
|
|
|
# - browse for later snapshots:
|
|
|
|
# - <https://mirror.accum.se/mirror/wikimedia.org/other/kiwix/zim/wikipedia>
|
|
|
|
# - DL directly, or via rsync (resumable):
|
|
|
|
# - `rsync --progress --append-verify rsync://mirror.accum.se/mirror/wikimedia.org/other/kiwix/zim/wikipedia/wikipedia_en_all_maxi_2022-05.zim .`
|
|
|
|
|
2022-12-16 02:25:57 +00:00
|
|
|
{ ... }:
|
|
|
|
{
|
2023-12-16 03:05:15 +00:00
|
|
|
sane.persist.sys.byStore.ext = [
|
2024-02-23 15:49:54 +00:00
|
|
|
{ user = "colin"; group = "users"; path = "/var/lib/kiwix"; method = "bind"; }
|
2023-12-16 03:05:15 +00:00
|
|
|
];
|
|
|
|
|
2022-12-16 02:25:57 +00:00
|
|
|
sane.services.kiwix-serve = {
|
|
|
|
enable = true;
|
|
|
|
port = 8013;
|
2023-12-16 03:05:15 +00:00
|
|
|
zimPaths = [ "/var/lib/kiwix/wikipedia_en_all_maxi_2023-11.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-06-07 23:34:00 +00:00
|
|
|
sane.dns.zones."uninsane.org".inet.CNAME."w" = "native";
|
2022-12-16 02:25:57 +00:00
|
|
|
}
|