Skip to main content

Configuration

The API reads configuration from environment variables.

VariableDefaultDescription
APP_NAMEepydemix WebAPIApplication name shown in API docs
APP_VERSION0.1.1API version
API_V1_PREFIX/api/v1URL prefix for all v1 endpoints
WARM_CACHE_ON_STARTUPfalsePre-load population data at startup
WARM_CACHE_POPULATIONS[]List of population names to pre-load

Cache warming

Population data is loaded on first request by default. Setting WARM_CACHE_ON_STARTUP=true pre-loads specified populations at startup, which reduces latency on the first request for those populations.

WARM_CACHE_ON_STARTUP=true
WARM_CACHE_POPULATIONS=["United_States", "Italy"]