Cortex Configuration Files
Cortex Configuration Files
Property value changes in the Cortex configuration files are scanned and updated in the application during run time. It is not necessary to restart the server to update the values.
Creating Cortex Configuration Files
Out of the box, Cortex scans a directory for configuration files, reads the values, and updates them in the application. If the directory does not exist on your server, you can create it following these instructions.
To create the Cortex Configuration Directory:
- Create the following directory:
- For Windows: C:/etc/ep/cortex/system/config
- For Linux: /etc/ep/cortex/system/config
To create a Cortex configuration file:
- In the Cortex configuration directory, create the configuration file.
Configuration Files
Below is a list of the configuration files Cortex supports out of the box.
authClientHost.cfg
Defines the URI for the Cortex authentication endpoint. For more information on authentication endpoints, see Cortex Authentication
Property Format
DEFAULT_HOST=http://localhost:9080/cortex/authentication/user
telco=http://localhost:13080/cortex/authentication/user DEFAULT_HOST=http://localhost:9080/cortex/authentication/user
authClientTrustHeader.config
Defines the OAuth2 endpoint trust header. For more information on OAuth2 endpoint trust headers, see Cortex Authentication
relos.trust.header.field.VALUE="<secret trust header>" relos.trust.header.field.NAME="x-ep-trust-header"
authTrustHeader.config
Defines the authentication endpoint trust header. For more information on endpoint trust headers, see Cortex Authentication
Property Format
relos.trust.header.field.VALUE="<secret trust header>" relos.trust.header.field.NAME="x-ep-trust-header"
recommendationsPageSize.config
Defines the pagination page-size setting for recommendations. Since a large number of items may be available for recommendations, this page-size setting can limit the number of items retrieved per request.
Property Format
rest.recommendations.page.size.VALUE=I"<positive integer>"Example with 5 items per page:
rest.recommendations.page.size.VALUE=I"5"
systemReadyState.config
Defines the number of resource bundles required to register their veto before Cortex is in a ready state. During Cortex startup, resource bundles register a veto once the bundle becomes active. Before a quorum is reached, Cortex returns a 503 Service Unavailable HTTP status for any request.
Property Format
quorumSize=I"<positive integer"
quorumSize=I"10"
tokenExpiry.config
Defines the authentication token's expiry time, in seconds. By default, the Cortex authentication tokens expire after 1 week (60 * 60 * 24 * 7 seconds).
Property Format
relos.token.expiry.SECONDS="{token expiry seconds}"
Example with 300 seconds:
roleHierarchy.config
Defines the role hierarchy used in Cortex authorizations. For more information on roles and permissions, see Cortex Authorization.
Property Format
relos.ROLE_HIERARCHY="ROLE_LOWEST,ROLE_HIGHER,...,ROLE_HIGHEST"