General Environment Variables
The following table describes all environment variables that could be use to ease Keyrock configuration.
Name | Type | Description | Possible values |
---|---|---|---|
IDM_PORT | Integer | Por where IdM Keyrock will be running | 0 to 65536 |
IDM_HOST | String | Name of the host where is running Keyrock | - |
IDM_DEBUG | Boolean | Enable show logs | true,false |
IDM_EMAIL_LIST | String | Type of list to be used to filter domain | null,whitelist,blacklist |
IDM_HTTPS_ENABLED | Boolean | Enable Keyrock to listen on HTTPS | true,false |
IDM_HTTPS_PORT | Integer | Port where IdM Keyrock will listen if HTTPS is enable | 0 to 65536 |
IDM_SESSION_SECRET | String | Value to encrypt user info in express sessions | - |
IDM_SESSION_DURATION | Integer | Lifetime of user session | - |
IDM_ENCRYPTION_KEY | String | Value used to encrypt passwords in DB if salt is not use | - |
IDM_CORS_ENABLED | Boolean | Enable Keyrock CORS | true,false |
IDM_CORS_ORIGIN | String | List of domains allowed separated by commas | - |
IDM_CORS_METHODS | String | List of HTTPS allowed verbs separated by commas | - |
IDM_CORS_ALLOWED_HEADERS | String | List of headers allowed separated by commas | - |
IDM_CORS_EXPOSED_HEADERS | String | List of exposed headers allowed separated by commas | - |
IDM_CORS_CREDENTIALS | Boolean | Ti include cookies in headers | true,false |
IDM_CORS_MAS_AGE | Integer | Indicates how long the results of a preflight request | - |
IDM_CORS_PREFLIGHT | Boolean | Allow preflight requests | true,false |
IDM_CORS_OPTIONS_STATUS | Integer | Status response code of HTTP OPTIONS verb | - |
IDM_OAUTH_AUTH_LIFETIME | Integer | Lifetime of OAuth2 Authorization Code | - |
IDM_OAUTH_ACC_LIFETIME | Integer | Lifetime of OAuth2 Access Token | - |
IDM_OAUTH_ASK_AUTH | Boolean | If is set to true, it will prompt authorization message when log in a service usign OAuth2 | true,false |
IDM_OAUTH_REFR_LIFETIME | Integer | Lifetime of OAuth2 Refresh Token | - |
IDM_OAUTH_UNIQUE_URL | Boolean | Set URL as unique parameter (this parameter will be used to redirect after a sign out if redirect_sign_out_uri) | true,false |
IDM_API_LIFETIME | Integer | Lifetime of API Token to be used to create resources on Keyrock | - |
IDM_PDP_LEVEL | String | Allow basic (HTTP verb + path) or advanced (XML rule. Need an AuthZforce instance) authorization rules | basic,advanced |
IDM_AUTHZFORCE_ENABLED | Boolean | Enable use of authZforce to store basic and advanced rules | true,false |
IDM_AUTHZFORCE_HOST | String | Name of the host where AuthZforce is running | - |
IDM_AUTHZFORCE_PORT | Integer | Port where AuthZforce is running | 0 to 65536 |
IDM_DB_HOST | String | Name of the host where is running the database | - |
IDM_DB_PASS | String | Password to authenticate Keyrock to perform actions against the database | - |
IDM_DB_USER | String | Username to authenticate Keyrock to perform actions against the database | - |
IDM_DB_NAME | String | Name of the database used by Keyrock | - |
IDM_DB_DIALECT | String | SQL Dialect of the database | mysql,sqlite,postgres,mssql |
IDM_DB_PORT | Integer | Port where Database is running | 0 to 65536 |
IDM_EX_AUTH_ENABLED | Boolean | Enable use of an external user table to authenticate users | true,false |
IDM_EX_AUTH_ID_PREFIX | String | Prefix to be add to ID in Keyrock user table when a external user logs in | - |
IDM_EX_AUTH_PASSWORD_ENCRYPTION | String | Algorithm used to encrypt passwords in external user table | - |
IDM_EX_AUTH_PASSWORD_ENCRYPTION_KEY | String | Value used to check passwords in external DB | - |
IDM_EX_AUTH_DB_HOST | String | Name of the host where is running the external database | - |
IDM_EX_AUTH_PORT | Integer | Port where is running the external database | 0 to 65536 |
IDM_EX_AUTH_DB_NAME | String | Name of the external database | - |
IDM_EX_AUTH_DB_USER | String | Username to authenticate Keyrock to perform actions against the external database | - |
IDM_EX_AUTH_DB_PASS | String | Password to authenticate Keyrock to perform actions against the external database | - |
IDM_EX_AUTH_DB_USER_TABLE | String | Name of the table to which Keyrock will perform an external authentication | - |
IDM_EX_AUTH_DIALECT | String | SQL Dialect of the external database | mysql,sqlite,postgres,mssql |
IDM_EMAIL_HOST | String | Name of the host where is running the mail server | - |
IDM_EMAIL_PORT | Integer | Port where is running the mail server | 0 to 65536 |
IDM_EMAIL_ADDRESS | String | Email Address used by Keyrock to send emails to the users | - |
IDM_TITLE | String | Name of Keyrock when using a new theme | - |
IDM_THEME | String | Name of the folder in which is store all new styles | - |
IDM_EIDAS_ENABLED | Boolean | Enable Keyrock to allow user authentication in services using their eID | true,false |
IDM_EIDAS_GATEWAY_HOST | String | Name of the host in which Keyrock is running | - |
IDM_EIDAS_NODE_HOST | String | Name of the host in which is running node eIDAS Service | - |
IDM_EIDAS_METADATA_LIFETIME | Integer | Lifetime of metadata of a service with eIDAS authentication enbled | - |
IDM_ADMIN_ID | String | ID of admin default user in Keyrock | - |
IDM_ADMIN_USER | String | Username of admin default user in Keyrock | - |
IDM_ADMIN_EMAIL | String | Email of admin default user in Keyrock | - |
IDM_ADMIN_PASS | String | Password of admin default user in Keyrock | - |