tileserver-gl icon indicating copy to clipboard operation
tileserver-gl copied to clipboard

Tutorial for implementing a Cache in front of Tileserver-GL

Open utagawal opened this issue 2 years ago • 2 comments

We are looking for a tutorial to implement a webcache in front of Tileserver-GL

We run tileserver-gl in a docker container with NGinw as a proxy.

We serve vector and raster maps.

There are plenty of caches available and only a few dedicated for map servers.

I was worndering if there would be an interest of putting something like https://mapproxy.org/ in fornt of Tileserver-GL and if so, if someone could point out to an install/config tutorial for it. Thanks !

utagawal avatar Jan 28 '23 07:01 utagawal

Seems like you could use raster tiles (xyz) or WMS from TileServer-GL as sources in MapProxy, though I don't see anything about vector tiles.

acalcutt avatar Feb 01 '23 19:02 acalcutt

As mentioned above you can just use the raster tiles API as the source in mapproxy. I run them both in openshift and mapproxy is used as my caching engine for offline GeoPackage Raster cache creation.

sources:
  tileserver-gl:
    type: tile
    grid: GLOBAL_WEBMERCATOR
    url: http://{host}:8080/styles/{id}/%(z)s/%(x)s/%(y)s.png

mjj203 avatar May 04 '23 17:05 mjj203