Configuring with Environment Variables
Values in the config.yml may be set using system environment variables. When an environment variable is not set and/or does not have a default value, the IQ Server will use the variable as a string literal.
Setting the IQ Server application port
server:
applicationConnectors:
- type: http
port: ${IQ_PORT}Set a default value to use when the environment variable is not set
server:
applicationConnectors:
- type: http
port: ${IQ_PORT:-8070}Nesting environment variables are also supported. In the following example, the ${IQ_HOST} resolves to PROD and ${IQ_PORT_PROD} resolves to 8070.
Q_HOST=PROD IQ_PORT_PROD=8070
server:
applicationConnectors:
- type: http
port: ${IQ_PORT_${IQ_HOST}}