mirror of
https://github.com/zvx-echo6/recon.git
synced 2026-05-20 06:34:40 +02:00
feat(navi): deployment profiles + /api/config endpoint
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>
This commit is contained in:
parent
d4c5c371ca
commit
e6b81db520
5 changed files with 149 additions and 0 deletions
31
config/profiles/minimal_pi.yaml
Normal file
31
config/profiles/minimal_pi.yaml
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
# Deployment profile: Minimal Pi (single-state pocket deployment)
|
||||
# Template for the lightest possible field kit — Idaho only.
|
||||
# Override via RECON_PROFILE env var.
|
||||
|
||||
profile: minimal_pi
|
||||
region_name: "Idaho"
|
||||
|
||||
tileset:
|
||||
url: "/tiles/idaho.pmtiles"
|
||||
bounds: [-117.5, 42.0, -111.0, 49.0]
|
||||
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: true
|
||||
|
||||
defaults:
|
||||
center: [44.0, -114.0]
|
||||
zoom: 7
|
||||
Loading…
Add table
Add a link
Reference in a new issue