mirror of
https://github.com/zvx-echo6/recon.git
synced 2026-05-20 06:34:40 +02:00
Add profile-driven config infrastructure:
- config/profiles/{home,regional_pi,minimal_pi}.yaml templates
- lib/deployment_config.py loader (reads RECON_PROFILE env var)
- GET /api/config returns active profile as JSON (5min cache)
Frontend reads this on startup to determine tile source, defaults,
and feature flags. No existing behavior changed.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
31 lines
722 B
YAML
31 lines
722 B
YAML
# Deployment profile: Home (VM 1130)
|
|
# Active on the main Echo6 deployment. Full stack with planet-scale NA tiles.
|
|
# Override via RECON_PROFILE env var in /etc/systemd/system/recon.service
|
|
|
|
profile: home
|
|
region_name: "North America"
|
|
|
|
tileset:
|
|
url: "/tiles/na.pmtiles"
|
|
bounds: [-168, 14, -52, 72]
|
|
max_zoom: 15
|
|
attribution: "Protomaps © OSM"
|
|
|
|
services:
|
|
geocode: "/api/geocode"
|
|
reverse: "/api/reverse"
|
|
address_book: "/api/address_book"
|
|
valhalla: "/valhalla"
|
|
|
|
features:
|
|
has_nominatim_details: false
|
|
has_kiwix_wiki: false
|
|
has_hillshade: false
|
|
has_3d_terrain: false
|
|
has_traffic_overlay: false
|
|
has_landclass: false
|
|
has_address_book_write: false
|
|
|
|
defaults:
|
|
center: [42.5736, -114.6066]
|
|
zoom: 10
|