tilegroxy docs

Description

This cache should be used in a multi-tenant deployment whenever a custom provider varies its output per tenant (e.g. different imagery or authorization per organization).

The tenant ID is populated by authentication. A request with no tenant ID falls back to the same cache key it would use without this wrapper, making this utterly pointless for a single-tenant (or unauthenticated) deployment.

The seed and test commands have no incoming request to take a tenant from, so pass one with their --tenant flag. Without it they act on the un-namespaced key rather than any tenant’s.

Tenant IDs are hashed with SHA-256 before being added to the cache key.

Example

  • YAML

  • JSON

cache:
  name: tenant
  cache:
    name: disk
    path: "./disk_tile_cache"
{
  "cache": {
    "name": "tenant",
    "cache": {
      "name": "disk",
      "path": "./disk_tile_cache"
    }
  }
}

Configuration

Configuration options
Parameter Description Type Required Default

cache

The wrapped Cache configuration

Cache

Yes

None