MapProxy can be configured to use a WMTS as a source, exposing the source data as a WMS and optionally a WMTS. This page walks through the process of configuring MapProxy to request data from the Get Mapping Aerial WMTS. The benefits of this approach are: the customer specific API key is hidden from end users; the base mapping is make available as both WMTS and WMS (for printing in iShare GIS); base map tiles are cached locally improving performance.
MapProxy config
The test MapProxy instance is configured via D:\mapproxytest\mapproxy.yaml
and available in a local browser on the server via http://localhost:84/ and http://localhost:81/iShareGISTEST.WebLocal/mapproxy/ (via a Rewrite rule). The test instance has the MapProxy demo available at http://localhost:84/demo/.
...
The first thing to do is to open the WMTS in QGIS the available Layers and TileMatrixSets that the WMTS is capable of providing.
...
...
Once you have tested the layers in QGIS and decided which are of interestopen the capabilities XML document in a browser to view the details of the WMTS that will be required to configure MapProxy.
...