services:
  tms:
    grids: [GLOBAL_WEBMERCATOR]
    origin: nw
    restful: true

layers:
  - name: stamen_watercolor
    title: Stamen Watercolor (Cached)
    sources: [stamen_watercolor_cache]

caches:
  stamen_watercolor_cache:
    grids: [GLOBAL_WEBMERCATOR]
    sources: [stamen_watercolor_source]
    cache:
      type: file
      directory: /srv/mapproxy/cache_data/stamen_watercolor

sources:
  stamen_watercolor_source:
    type: tile
    url: https://tiles.stadiamaps.com/tiles/stamen_watercolor/%(z)s/%(x)s/%(y)s.jpg
    grid: GLOBAL_WEBMERCATOR

grids:
  GLOBAL_WEBMERCATOR:
    srs: EPSG:3857
    origin: nw

globals:
  cache:
    base_dir: /srv/mapproxy/cache_data
    lock_dir: /srv/mapproxy/cache_data/.locks
