mirror of
https://github.com/maplibre/martin.git
synced 2024-12-24 15:34:51 +03:00
3dc54d7f9e
Add a top level config parameter -- the size of cache memory (in MB) to use for caching tiles and PMT directories, defaulting to 512, and 0 to disable. This also removes the `pmtiles.dir_cache_size_mb` parameter (it will be ignored, but will give a warning) ``` cache_size_mb: 512 ``` The new cache will contain all tiles as provided by the source. So if PostgreSQL returns a non-compressed tile, the cache will contain the uncompressed variant, and will be compressed for each response. This will be fixed in the later releases. Note that fonts and sprites are not cached at this time, and are still a TODO.
47 lines
1.0 KiB
YAML
47 lines
1.0 KiB
YAML
# Connection keep alive timeout [default: 75]
|
|
keep_alive: 75
|
|
|
|
# The socket address to bind [default: 0.0.0.0:3000]
|
|
listen_addresses: '0.0.0.0:3000'
|
|
|
|
# Number of web server workers
|
|
worker_processes: 8
|
|
|
|
# Amount of memory (in MB) to use for caching tiles [default: 512, 0 to disable]
|
|
cache_size_mb: 512
|
|
|
|
# see https://maplibre.org/martin/config-file.html
|
|
|
|
# postgres:
|
|
# connection_string: 'postgresql://postgres@localhost:5432/db'
|
|
# default_srid: 4326
|
|
# pool_size: 20
|
|
# max_feature_count: 1000
|
|
# auto_bounds: skip
|
|
|
|
# pmtiles:
|
|
# paths:
|
|
# - /dir-path
|
|
# - /path/to/pmtiles.pmtiles
|
|
# - http://example.org/pmtiles.pmtiles
|
|
# sources:
|
|
# pm-src1: /path/to/pmtiles1.pmtiles
|
|
# pm-web1: http://example.org/pmtiles1.pmtiles
|
|
|
|
# mbtiles:
|
|
# paths:
|
|
# - /dir-path
|
|
# - /path/to/mbtiles.mbtiles
|
|
# sources:
|
|
# mb-src1: /path/to/mbtiles1.mbtiles
|
|
|
|
# sprites:
|
|
# paths:
|
|
# - /path/to/sprites_dir
|
|
# sources:
|
|
# sprite1: /path/to/sprites_dir2
|
|
|
|
# fonts:
|
|
# - /path/to/font/file.ttf
|
|
# - /path/to/font_dir
|