mirror of
https://github.com/maplibre/martin.git
synced 2024-12-21 13:51:47 +03:00
1a8e7c89a4
PMTiles is a web-optimized format, allowing the actual file to be read with HTTP range requests. Supporting this use case instantly allows Martin to function as a lambda executable accessing PMTiles, but without any significant investment into devops or hosting large file. PMTiles config now also allows `http` and `https` protocol. ``` # Publish PMTiles files pmtiles: paths: # specific pmtiles file will be published as mypmtiles source # (use last portion of the URL without extension) - http://example.org/path/to/mypmtiles.pmtiles sources: # named source matching source name to a single file pm-src1: https://example.org/path/to/some_pmtiles.pmtiles ``` fixes #884 --------- Co-authored-by: Kyle Slugg-Urbino <35903887+kyleslugg@users.noreply.github.com>
38 lines
834 B
YAML
38 lines
834 B
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
|
|
|
|
# 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
|
|
|
|
# fonts:
|
|
# - /path/to/font/file.ttf
|
|
# - /path/to/font_dir
|