hyperknot / openfreemap

Free and open-source map hosting solution with custom styles for websites and apps, using OpenStreetMap data
https://openfreemap.org/
Other
2.93k stars 60 forks source link

Add hash for big downloads #9

Closed hyperknot closed 2 months ago

hyperknot commented 2 months ago

Add a hash file so downloads can be verified.

BTW, you can already use the etag header for this, it uses MD5:

curl -sI https://btrfs.openfreemap.com/areas/monaco/20240918_231001_pt/tiles.mbtiles | grep etag
etag: "98398ed3a69b873756404fa68edbd39a"
md5sum tiles.mbtiles
98398ed3a69b873756404fa68edbd39a  tiles.mbtiles
hyperknot commented 2 months ago

A SHA256SUMS file is now added, following the Ubuntu naming style.

8c8677d4f26318b029971ea13c592bed4b015c3e20ced111cc512c71f72a2344  tiles.btrfs.gz
1c5d8d2ff9c8a20842f9a83c0c0661c2b936c090eb0f9e5d51204db6e587db92  tiles.mbtiles