I followed the guide from https://wiki.openstreetmap.org/wiki/MapProxy to create a locale tile proxy for OpenStreetMap, because I need to access the same tiles over and over again. However, there seem to be some problems with the grid definitions.
As a example if I try to access http://localhost:8080/tms/1.0.0/osm/EPSG900913/6/12/11.png the URL is translated to http://c.tile.openstreetmap.org/7/12/116.png
What has to be changed in the config that mapproxy acts as a purely transparent proxy?
Best Answer
There a lot of things that can go wrong, especially srs / grid / bbox, as I've found out trying to work this out... So here is full working example for transparent OSM cache, to help next poor soul finding this:
P.S. note that you need to access it as
http://localhost:8080/tiles/1.0.0/osm_demo/webmercator/{zoom}/{x}/{y}.png
not as defaulthttp://localhost:8080/tms/1.0.0/osm_demo/webmercator/{zoom}/{x}/{y}.png
shown as setup page, as that will give you dreaded "empty blue" tiles...