The environment variables are defined in yaml files under
config/custom-environment-variables.yaml file. The default directory structure is given as below:
│ ├── custom-environment-variables.yaml
Any configuration which includes secrets or passwords is recommended to be defined using environment variables only.
This is a sample for custom environment variables where these variables gets values from environment variables set in the environment.
MY_DATASOURCE_BASE_URL is defined as an environment variable. To specify its value, you need to export this variable in the environment as given below:
$ export MY_DATASOURCE_BASE_URL=https://httpbin.org/
After exporting the environment variable, you can access this variable in your project by using scripting
<% config.my_datasource.base_url %>