Search…
SDK and Frameworks
Environment Variables

DecisionRules Environment Variables

All variables can be set either in the docker-compose configuration file or directly as a command-line parameter before running the containers.

Server environment variables

Variable name
Description
Mandatory
Version
Example value
SHOWCASE
Turn on or off showcase mode
No
true/false
WORKERS_NUMBER
Sets number of workers (threads) of application
No
1
REDIS_URL
Redis URL
Yes
redis(s)://host.docker.internal:6379
SOLVER_REDIS_URL
Redis URL for solver
Yes
Not needed from version 1.6.0, will use REDIS_URL instead
redis(s)://host.docker.internal:6379
MONGO_DB_URI
Mongo URL
Yes
mongodb(+srv)://host.docker.internal:27017
CLIENT_URL
Url on which client container is accessible
Yes
http://localhost:80/# (# is mandatory)
LICENSE_KEY
License key string
Yes
YOUR LICENSE KEY
SAML_ENTRY_POINT
URL for your identity provider login page
No
https://devX.okta.com/app/name/HASH/sso/saml
SAML_ISSUER
Issuer string to supply to IdP
No
okta.com/HASH_STRING
SAML_CERT
Public certificate of provider. In RAW format as single line withou BEGIN CERTIFICATE and END CERTIFICATE
No
MIIC8DCCAdigAwIBAgIQap4GhMRA26tJGFD3fdTuNjANBgkqhkiG9w0BAQsFADA0MTIwMAYDVQQDEylNaWNyb3NvZnQgQXp1cmUgRmVkZXJhdGVkIFNTTyBD.......
SAML_CALLBACK_URL
Callback URL where provider send response
No
https://api.decisionrules.io/saml/callback
RF_TIMEOUT
Time in milliseconds after which the process of solving a rule flow is stopped
No
10000
SR_TIMEOUT
Time in milliseconds after which the process of solving a scripting rule is stopped
No
10000
RF_NODE_LIMIT
Integer of desired rule flow nodes, default value is 30
No
30
SWAGGER_HOST
Host of the server application which will use swagger
No
api.decisionrules.io
WHITELIST
List of allowed domains from which it is possible to register or log in. You can setup multiple domains separated with comma.
No
mydomain.com, yourdomain.io
ALLOWLIST
Cultural-neutral synonym for WHITELIST.
No
mydomain.com, yourdomain.io
TELEMETRY
It turn on/off telemetry, which measures endpoint execution duration (for example: Solver API)
No
Available from 1.8.1
On = 1 Off = 0
DB_TYPE
Specify MongoDB type
If you use CosmosDB or DocumentDB
Available from 1.8.2
MONGODB (default) COSMOSDB DOCUMENTDB

Client env variables

Variable name
Description
Mandatory
Example value
API_URL
Url on which backend API is accessible
Yes
http://localhost:8080