1.9 KiB
IRIS Configuration
In order to connect to the database and other systems certain configurations are needed. This document lists all available configurations.
How to set configuration variables
There are 3 different options to set configuration variables
- Azure Key Vault
- Environment Variables
- The config.ini file
Azure Key Vault
The first option that is checked is the Azure Key Vault. In order to use this the AZURE_KEY_VAULT_NAME should be specified.
Since Azure Key Vault does not support underscores you should remove this from the configuration name. For example: POSTGRES_USER becomes POSTGRES-USER.
Environment Variables
The second option is using environment variables, which gives the most amount of flexibility.
Config.ini
The last and fallback option is the config.ini. Within the project there is a config.model.ini, which is not used but gives the example how the file should look like. If the application is started with the environment variable DOCKERIZED=1 then the config.docker.ini is loaded, otherwhise the config.priv.ini is loaded.
Environment variable only
A few configs are environment variables only:
IRIS_WORKER- Specifies if the process is the workerDOCKERIZED- Should be set if running in docker, also loads the other config.ini
Configuration options
POSTGRES
The POSTGRES section has the following configurations:
POSTGRES_USER- The user IRIS usesPOSTGRES_PASSWORD- The password for the user IRIS usesPOSTGRES_ADMIN_USER- The user IRIS uses for table migrationsPOSTGRES_ADMIN_PASSWORD- The password for the user IRIS uses for table migrationsPOSTGRES_HOST- The server addressPOSTGRES_PORT- The server port
CELERY
CELERY_BROKER- The broker address used by Celery
IRIS
IRIS_SECRET_KEY- The secret key used by Flask.IRIS_SECURITY_PASSWORD_SALT- ??