Map data pull: of kiwix/ only the served wikipedia.zim, not the other ZIMs lying there (65 GB)
This commit is contained in:
1 parent
5eea31c741
commit
f9fbcdbbc5
2 files changed
+5
-3
No files matched your search
@@ -224,8 +224,10 @@ module Maptool
|
|||||||
# Map data the server hands its clients (GET /api/sync/maps, pulled by
|
# Map data the server hands its clients (GET /api/sync/maps, pulled by
|
||||||
# bin/pull-maps.sh — one way, the server builds it): these files and
|
# bin/pull-maps.sh — one way, the server builds it): these files and
|
||||||
# everything under these directories of DATA_DIR.
|
# everything under these directories of DATA_DIR.
|
||||||
MAP_SYNC_FILES = %w[offline.pmtiles offline.pmtiles.meta.json terrain.pmtiles terrain.pmtiles.meta.json offline_regions.json].freeze
|
# Of kiwix/ only the ZIM kiwix-serve is given (other ZIMs lying there are GBs).
|
||||||
MAP_SYNC_DIRS = %w[routing places hiking_trails kiwix nps].freeze
|
MAP_SYNC_FILES = %w[offline.pmtiles offline.pmtiles.meta.json terrain.pmtiles terrain.pmtiles.meta.json offline_regions.json
|
||||||
|
kiwix/wikipedia.zim].freeze
|
||||||
|
MAP_SYNC_DIRS = %w[routing places hiking_trails nps].freeze
|
||||||
|
|
||||||
# { "relative/path" => absolute path } of the map data there is now;
|
# { "relative/path" => absolute path } of the map data there is now;
|
||||||
# hidden and temporary files (.rsync-partial, *.part, *.tmp) left out,
|
# hidden and temporary files (.rsync-partial, *.part, *.tmp) left out,
|
||||||
|
|||||||
@@ -253,7 +253,7 @@ goes operational by itself, so no `nmt_start`.
|
|||||||
|
|
||||||
`bin/pull-maps.sh`, run by `maptool-pull-maps.timer` (10 min after boot,
|
`bin/pull-maps.sh`, run by `maptool-pull-maps.timer` (10 min after boot,
|
||||||
then every 6 h) as `randy`: pulls the pmtiles, routing, places, hiking
|
then every 6 h) as `randy`: pulls the pmtiles, routing, places, hiking
|
||||||
trails, the ZIM and the NPS maps from brick over HTTPS — the same public
|
trails, the ZIM kiwix serves (`kiwix/wikipedia.zim`, not other ZIMs there) and the NPS maps from brick over HTTPS — the same public
|
||||||
URL and `SYNC_TOKEN` as the library sync (read from `.env`), so no SSH or
|
URL and `SYNC_TOKEN` as the library sync (read from `.env`), so no SSH or
|
||||||
VPN. brick lists them (`GET /api/sync/maps`: size, mtime, path; the list
|
VPN. brick lists them (`GET /api/sync/maps`: size, mtime, path; the list
|
||||||
of files is app.rb's `MAP_SYNC_FILES`/`MAP_SYNC_DIRS`) and serves each
|
of files is app.rb's `MAP_SYNC_FILES`/`MAP_SYNC_DIRS`) and serves each
|
||||||
|
|||||||
Reference in new issue
Block a user