Skip to content
Corridor V1.26.08 is out, see what's new

Technology

Configuration Setup Overview

Ask AI

How Corridor Platform components are configured after installation, including config files and environment variables.

After the installation, there are some configurations that need to be configured for each of the components. This section describes all the available configurations needed for each component to work correctly. Using these configurations the setup can be tweaked as needed.

The configurations for each component needs to be present in the corresponding config file:

It is possible to configure the platform using environment variables instead of (or in combination with) config files mentioned above. This might be more convenient in a cloud based deployment setting or while using a centralized secret management system (like Hashicorp Vault).

When working with secret management systems, configurations could be loaded as environment variables during deployment of the platform.

When configuring API/APP component via environment variables, prepend the configuration key with CORRIDOR_. Below are some examples for some standard data types,

Setting in api_config.pyEnvironment Variable Equivalent
LICENSE_KEY = xxxxxxxexport CORRIDOR_LICENSE_KEY=xxxxxxx
WORKER_PROCESSES = 1export CORRIDOR_WORKER_PROCESSES=1
REQUIRE_SIMULATION = Falseexport CORRIDOR_REQUIRE_SIMULATION=false
WORKER_QUEUES = ['api', 'spark', 'quick_spark']export CORRIDOR_WORKER_QUEUES="['api', 'spark', 'quick_spark']"