maptiler / tileserver-gl

Vector and raster maps with GL styles. Server side rendering by MapLibre GL Native. Map tile server for MapLibre GL JS, Android, iOS, Leaflet, OpenLayers, GIS via WMTS, etc.
https://tileserver.readthedocs.io/en/latest/
Other
2.23k stars 638 forks source link

Tutorial for implementing a Cache in front of Tileserver-GL #737

Open utagawal opened 1 year ago

utagawal commented 1 year ago

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 !

acalcutt commented 1 year ago

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.

mjj203 commented 1 year ago

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