This article describes the syntax when configuring Nexus Timestamp Server.
All configuration parameters are in the form: <name>=<value>
. The character #
first on a line starts a comment.
Expand |
---|
title | Group keys into sections |
---|
|
Configuration parameters can be grouped into sections. A prefix in square brackets on a line starts a new section. See this example: Code Block |
---|
title | Example: Section grouped with a prefix |
---|
| [server.0]
connector.0.host=localhost
connector.0.port=8879
connector.0.requestHeaderSize=24576 |
Sections are a shorthand of this: Code Block |
---|
title | Example: Section without prefix |
---|
| server.0.connector.0.host=localhost
server.0.connector.0.port=8879
server.0.connector.0.requestHeaderSize=24576 |
|
Expand |
---|
title | Include parameters from several files |
---|
|
Configuration parameters can be split into several configuration files using an include statement: Code Block |
---|
title | Exampel: 'include' statement |
---|
| #include ./*-webapp.properties |
This example will include parameters from all files with file names ending with “-webapp.properties”. |
Expand |
---|
|
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. |
|
Expand |
---|
title | 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==
Note |
---|
The scrambling will create *.seed files that must not be deleted, or the scrambled value can not be unscrambled. |
|
- Configure Nexus Timestamp Server