A more verbose version of this config actually used for internal testing can be found at config.toml.example in the root of the repo.
More detailed information about configuring LOD and hardening it for production use can be found in the Reference Guide.
[instance]port =1337# port to bind toadmin_token ="supersecret"# admin endpoint bearer token# base proxy configuration[[proxies]]# name of this proxy, available at http://lod/{name}/{z}/{x}/{y}.{file_extension}name ="osm"# url of the upstream tileserver with template parameters# for the X, Y, and Z values. These are required.tile_url ="https://tile.example.com/osm/{z}/{x}/{y}.pbf"# comma-separated list of allowed CORS originscors_origins ="https://example.com"# auth token (?token=XXX) to require for requests to upstream tileserveraccess_token ="MyTilesArePrivate"# headers to pull and cache from the tileserver responsepull_headers = ["X-We-Want-This","X-This-One-Too"]# headers to delete from the tileserver responsedel_headers = [ "X-Get-Rid-Of-Me" ]# proxy cache configuration[proxies.cache]# enable in-memory cachemem_enabled =true# maximum capacity in MB of the in-memory cachemem_cap =100# Cache TTLs are set using Go's built-in time.ParseDuration# Valid time units are "ns", "us" (or "ยตs"), "ms", "s", "m", "h".# For example: 1h, 5m, 300s, 1000ms, 2h35m, etc.# in-memory cache TTLmem_ttl ="1h"# enable redis cacheredis_enabled =true# redis tile cache TTL, or "0" for no expiryredis_ttl ="24h"# redis connection URLredis_url ="redis://localhost:6379/0"# cache key template string, supports parameter nameskey_template ="{z}/{x}/{y}"# headers to inject into upstream tileserver requests[[proxies.add_headers]]# name of header to addname ="Referer"# value of header to addvalue ="https://yoursite.com/"# Supports many configured proxy instances for caching multiple tileservers[[proxies]]name ="another"# etc.