Skip to main content

Configuration Model

Two Layers of Configuration

The service intentionally separates configuration into:

  1. startup defaults from environment variables
  2. persisted runtime configuration in /data/server_config.json

At runtime, the persisted configuration wins when present.

Main Runtime Settings

KeyMeaning
min_colormap_classeslower bound for generated color classes
max_upload_mbupload size limit
max_parallelconcurrency hint used by the UI and some processing flows
wms_debugverbose WMS debugging
wms_use_mapcacheuse MapCache first for GetMap
point_query_publicmake point query features public
mapcache_seed_minzoom / maxzoomseed zoom range
mapcache_seed_workersparallel seed workers
mapcache_seed_on_ingestautomatic seeding after ingest
mapcache_seed_max_tilescap tiles per seed job
mapcache_request_timeouttimeout for MapCache source fetches
mapcache_public_urlpublic MapCache URL for clients
hyspex_parent_scan_multiplierscan expansion factor for parent ingestion
hyspex_parent_scan_limitmaximum CSW scan size
csw_filename_prefix_modenaming convention for CSW-backed files
thumbnail_cache_mode / dir / maxthumbnail cache behavior
netcdf_cache_maxin-memory NetCDF cache size

Main Environment Variables

In addition to the runtime keys above, the current stack also depends on:

  • DATA_ROOT
  • WMS_PUBLIC_URL
  • MAPCACHE_INTERNAL_URL
  • MAPCACHE_CACHE_DIR
  • CELERY_BROKER_URL
  • CELERY_RESULT_BACKEND
  • AUTH_HASH_SALT
  • MAGO_TERRAIN_PUBLIC_URL
  • HYSPEX_LOCAL_ROOT
  • HYSPEX_OPENDAP_STRIP_PREFIX

Where Configuration Is Changed

SurfaceUse
/config GETinspect the effective runtime config
/config POSTpersist changes
/ui/ server config cardoperator-friendly config editing
stack filesbootstrap environment defaults and safe startup overrides

Important Behavior

Because server_config.json overrides the environment, stack files in this repository deliberately write safe persisted defaults at startup in the local swarm profile. That prevents old experiments from re-enabling aggressive options such as large cache seeding or stale debug settings.