← Home

OpenMapTiles on Synology

Few personal requirements for this note,

  1. Have local domain that accessible without adding domain into /etc/hosts
  2. No Apache package inside Synology
  3. OpenMapTiles have to start automatically after NAS is restarted

My personal NAS model is DS218+, which has Docker package and with intel CPU, so the process might be different for other models (especially ARM which I don't think OpenMapTiles supports it yet or has a container image for it.) This project is for myself having map run locally and render my activity heat map over it without need of internet connection, also, I can copy all the map file that loaded and run on my laptop why travelling e.g. on the plane.

The disk space requires for this is around 60GB (Planet map from OSM package by OpenMapTiles and OpenMapTiles container itself), so this can copy into my laptop later. Step below is for setup OpenTilesMap inside the Synology Docker service and make it run with internal nginx and green lock ssl.

location / {
	proxy_set_header Host $host;
	proxy_set_header X-Forwarded-Proto $scheme;
	proxy_set_header X-Forwarded-Host $host;
	proxy_set_header X-Forwarded-Server $host;
	proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
	proxy_pass http://localhost:15300;
}

← Home