- docker-compose: ghcr.io/maplibre/martin:v1.10.1, Port 3000 - config/martin.yaml: Auto-Discovery MBTiles/Styles/Sprites/Fonts, CORS built-in - nginx-Container entfernt (NPM uebernimmt Proxy/SSL/Routing) - config/config.json + nginx/ entfernt (TileServer-GL Artefakte) - docs: alle Endpunkt-URLs auf Martin-Format aktualisiert - .github/copilot-instructions.md: Stack auf Martin (Rust) aktualisiert - Vorteile: Hot-Reload, CORS built-in, ~10x weniger RAM
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
# Martin Tile Server – Konfiguration
|
||
# Dokumentation: https://maplibre.org/martin/
|
||
|
||
listen_addresses: "0.0.0.0:3000"
|
||
keep_alive: 75
|
||
worker_processes: 4
|
||
preferred_encoding: gzip
|
||
|
||
# CORS – erlaubt Zugriff von allen LAN-Diensten (MediaWiki, Nextcloud, Home Assistant)
|
||
# Fuer public deployment: origins auf eigene Domains einschraenken
|
||
cors:
|
||
allowed_origins:
|
||
- "*"
|
||
allowed_methods:
|
||
- GET
|
||
- OPTIONS
|
||
allowed_headers:
|
||
- "*"
|
||
|
||
# Auto-Discovery: alle *.mbtiles und *.pmtiles aus /data laden
|
||
# osm.mbtiles -> Source-ID: osm -> /{z}/{x}/{y} unter /osm/
|
||
# satellite.mbtiles -> Source-ID: satellite -> /{z}/{x}/{y} unter /satellite/
|
||
mbtiles:
|
||
paths:
|
||
- /data
|
||
|
||
# MapLibre GL Styles aus /data/styles/ servieren
|
||
# -> GET /styles/{id} (Style-JSON fuer MapLibre GL Clients)
|
||
styles:
|
||
paths:
|
||
- /data/styles
|
||
|
||
# Sprites (Icons, Pins, Marker) aus /data/sprites/
|
||
# -> GET /sprites/{id}.json und /sprites/{id}.png
|
||
sprites:
|
||
paths:
|
||
- /data/sprites
|
||
|
||
# Schriftarten fuer Karten-Labels
|
||
# -> GET /fonts/{font_name}/{start}-{end}.pbf
|
||
fonts:
|
||
paths:
|
||
- /data/fonts
|