mirror of
https://github.com/zvx-echo6/navi.git
synced 2026-08-26 17:31:37 +00:00
Merge pull request #2 from zvx-echo6/extraction-2-profiles-in-repo
Add deployment profiles to navi-backend (decouple from /opt/recon)
This commit is contained in:
commit
9d7be4bb0d
3 changed files with 177 additions and 0 deletions
67
backend/config/profiles/home.yaml
Normal file
67
backend/config/profiles/home.yaml
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
# 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/planet/current.pmtiles"
|
||||
bounds: [-168, 14, -52, 72]
|
||||
max_zoom: 15
|
||||
attribution: "Protomaps © OSM"
|
||||
|
||||
tileset_hillshade:
|
||||
url: "/tiles/planet-dem.pmtiles"
|
||||
encoding: "terrarium"
|
||||
max_zoom: 12
|
||||
|
||||
traffic:
|
||||
provider: "tomtom"
|
||||
proxy_url: "/api/traffic/flow/{z}/{x}/{y}.png"
|
||||
|
||||
place_details:
|
||||
local_source: "nominatim"
|
||||
local_bbox: [-125.0, 31.3, -104.0, 49.0]
|
||||
fallback_source: "overpass"
|
||||
|
||||
services:
|
||||
geocode: "/api/geocode"
|
||||
reverse: "/api/reverse"
|
||||
address_book: "/api/address_book"
|
||||
valhalla: "/valhalla"
|
||||
|
||||
auth:
|
||||
login_url: "/outpost.goauthentik.io/start?rd=%2F"
|
||||
logout_url: "https://auth.echo6.co/if/flow/default-invalidation-flow/?next=https://navi.echo6.co/"
|
||||
|
||||
features:
|
||||
has_nominatim_details: true
|
||||
has_kiwix_wiki: true
|
||||
has_hillshade: true
|
||||
has_3d_terrain: false
|
||||
has_traffic_overlay: true
|
||||
has_landclass: true
|
||||
has_public_lands_layer: true
|
||||
has_contours: true
|
||||
has_contours_test: false
|
||||
has_contours_test_10ft: false
|
||||
has_address_book_write: false
|
||||
has_overture_enrichment: true
|
||||
has_google_places_enrichment: true
|
||||
has_contacts: true
|
||||
has_wiki_rewriting: true
|
||||
has_wiki_discovery: false
|
||||
has_usfs_trails: true
|
||||
has_blm_trails: true
|
||||
|
||||
defaults:
|
||||
center: [42.5736, -114.6066]
|
||||
zoom: 10
|
||||
|
||||
# Offroute wilderness routing
|
||||
offroute:
|
||||
osm_pbf_path: "/mnt/nav/sources/idaho-latest.osm.pbf"
|
||||
densify_interval_m: 100
|
||||
postgis_dsn: "dbname=padus"
|
||||
|
||||
51
backend/config/profiles/minimal_pi.yaml
Normal file
51
backend/config/profiles/minimal_pi.yaml
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
# 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"
|
||||
|
||||
tileset_hillshade:
|
||||
url: "/tiles/hillshade-idaho.pmtiles"
|
||||
encoding: "terrarium"
|
||||
max_zoom: 12
|
||||
|
||||
traffic:
|
||||
provider: "tomtom"
|
||||
proxy_url: "/api/traffic/flow/{z}/{x}/{y}.png"
|
||||
|
||||
services:
|
||||
geocode: "/api/geocode"
|
||||
reverse: "/api/reverse"
|
||||
address_book: "/api/address_book"
|
||||
valhalla: "/valhalla"
|
||||
|
||||
# TODO(matt): confirm logout next= host for this profile
|
||||
auth:
|
||||
login_url: "/outpost.goauthentik.io/start?rd=%2F"
|
||||
logout_url: "https://auth.echo6.co/if/flow/default-invalidation-flow/?next=https://navi.echo6.co/"
|
||||
|
||||
features:
|
||||
has_nominatim_details: false
|
||||
has_kiwix_wiki: false
|
||||
has_hillshade: false
|
||||
has_3d_terrain: false
|
||||
has_traffic_overlay: false
|
||||
has_landclass: false
|
||||
has_public_lands_layer: false
|
||||
has_address_book_write: true
|
||||
has_overture_enrichment: false
|
||||
has_google_places_enrichment: false
|
||||
has_contacts: false
|
||||
has_wiki_rewriting: false
|
||||
has_wiki_discovery: false
|
||||
|
||||
defaults:
|
||||
center: [44.0, -114.0]
|
||||
zoom: 7
|
||||
59
backend/config/profiles/regional_pi.yaml
Normal file
59
backend/config/profiles/regional_pi.yaml
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
# Deployment profile: Regional Pi (multi-state field kit)
|
||||
# Template for a Raspberry Pi covering Idaho + surrounding states.
|
||||
# Override via RECON_PROFILE env var.
|
||||
|
||||
profile: regional_pi
|
||||
region_name: "Idaho + Neighbors"
|
||||
|
||||
tileset:
|
||||
url: "/tiles/regional.pmtiles"
|
||||
bounds: [-125, 40, -104, 49]
|
||||
max_zoom: 15
|
||||
attribution: "Protomaps © OSM"
|
||||
|
||||
tileset_hillshade:
|
||||
url: "/tiles/hillshade-regional.pmtiles"
|
||||
encoding: "terrarium"
|
||||
max_zoom: 12
|
||||
|
||||
traffic:
|
||||
provider: "tomtom"
|
||||
proxy_url: "/api/traffic/flow/{z}/{x}/{y}.png"
|
||||
|
||||
place_details:
|
||||
local_source: "nominatim"
|
||||
local_bbox: [-125.0, 40.0, -104.0, 49.0]
|
||||
fallback_source: "overpass"
|
||||
|
||||
services:
|
||||
geocode: "/api/geocode"
|
||||
reverse: "/api/reverse"
|
||||
address_book: "/api/address_book"
|
||||
valhalla: "/valhalla"
|
||||
|
||||
# TODO(matt): confirm logout next= host for this profile
|
||||
auth:
|
||||
login_url: "/outpost.goauthentik.io/start?rd=%2F"
|
||||
logout_url: "https://auth.echo6.co/if/flow/default-invalidation-flow/?next=https://navi.echo6.co/"
|
||||
|
||||
features:
|
||||
has_nominatim_details: true
|
||||
has_kiwix_wiki: false
|
||||
has_hillshade: true
|
||||
has_3d_terrain: false
|
||||
has_traffic_overlay: true
|
||||
has_landclass: true
|
||||
has_public_lands_layer: true
|
||||
has_contours: true
|
||||
has_contours_test: true
|
||||
has_contours_test_10ft: true
|
||||
has_address_book_write: true
|
||||
has_overture_enrichment: false
|
||||
has_google_places_enrichment: false
|
||||
has_contacts: false
|
||||
has_wiki_rewriting: true
|
||||
has_wiki_discovery: false
|
||||
|
||||
defaults:
|
||||
center: [44.0, -114.0]
|
||||
zoom: 7
|
||||
Loading…
Add table
Add a link
Reference in a new issue