Configuration parameters can be split into several configuration files using an include statement:
Exampel: 'include' statement
#include ./*-webapp.properties
This example will include parameters from all files with file names ending with “-webapp.properties”.
Substitute text
Text substitution will be performed on the values defined in the configuration files. The following replacements will be done:
Variable
Description
${ConfigurationDir}
Path to directory containing the configuration root.
${ConfigDir}
Path to directory containing the configuration root.
${config}
Path to directory containing the configuration root.
${ServiceDir}
Path to the current used service directory.
${service}
The name of the current service.
${var}
Path to the directory containing the variable data files.
Scramble sensitive parameters
To scramble any configuration parameter in the configuration file:
Add the keyword encrypted as a sub configuration to the configuration.
The next time the application starts it scans the configuration file for unscrambled values in the file and scrambles the value, and saves the updated file to disk.
Example:
The parameter *.pin = 1234 is considered to be sensitive and therefore it should be scrambled.
To scramble the parameter, replace the parameter with *.pin.encrypted = 1234.
The server will find the unscrambled value and scramble it.
The resulting configuration file will have the parameter *.pin.encrypted = encrypted:MCa12==
The scrambling will create *.seed files that must not be deleted, or the scrambled value can not be unscrambled.