martin/tests/expected/given_config.yaml
Yuri Astrakhan 3fcad46500
fix (re-)compression of images (#579)
Compression middleware turned out to be hard to use for image cases - it
simply looks at the content-encoding, and if not set, tries to compress
if accepted by the client.

Instead, now individual routes are configured with either that
middleware, or for tiles, I decompress and optionally recompress if
applicable.

Now encoding is tracked separately from the tile content, making it
cleaner too. Plus lots of tests for mbtiles & pmtiles.

Fixes #577
2023-02-20 10:44:22 -05:00

119 lines
2.2 KiB
YAML

keep_alive: 75
listen_addresses: localhost:3111
worker_processes: 1
postgres:
default_srid: 4326
max_feature_count: 1000
pool_size: 20
tables:
MixPoints:
schema: MixedCase
table: MixPoints
srid: 4326
geometry_column: Geom
id_column: giD
bounds:
- -170.94984639004662
- -84.20025580733805
- 167.70892858284475
- 74.23573284753762
geometry_type: POINT
properties:
taBLe: text
points1:
schema: public
table: points1
srid: 4326
geometry_column: geom
minzoom: 0
maxzoom: 30
bounds:
- -180.0
- -90.0
- 180.0
- 90.0
extent: 4096
buffer: 64
clip_geom: true
geometry_type: POINT
properties:
gid: int4
points2:
schema: public
table: points2
srid: 4326
geometry_column: geom
minzoom: 0
maxzoom: 30
bounds:
- -180.0
- -90.0
- 180.0
- 90.0
extent: 4096
buffer: 64
clip_geom: true
geometry_type: POINT
properties:
gid: int4
points3857:
schema: public
table: points3857
srid: 3857
geometry_column: geom
minzoom: 0
maxzoom: 30
bounds:
- -180.0
- -90.0
- 180.0
- 90.0
extent: 4096
buffer: 64
clip_geom: true
geometry_type: POINT
properties:
gid: int4
table_source:
schema: public
table: table_source
srid: 4326
geometry_column: geom
minzoom: 0
maxzoom: 30
bounds:
- -180.0
- -90.0
- 180.0
- 90.0
extent: 4096
buffer: 64
clip_geom: true
geometry_type: GEOMETRY
properties:
gid: int4
functions:
function_zxy_query:
schema: public
function: function_zxy_query
minzoom: 0
maxzoom: 30
bounds:
- -180.0
- -90.0
- 180.0
- 90.0
function_zxy_query_test:
schema: public
function: function_zxy_query_test
minzoom: 0
maxzoom: 30
bounds:
- -180.0
- -90.0
- 180.0
- 90.0
pmtiles:
sources:
pmt: tests/fixtures/files/stamen_toner__raster_CC-BY+ODbL_z3.pmtiles