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.
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:
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:
Example: Section without prefix
server.0.connector.0.host=localhost
server.0.connector.0.port=8879
server.0.connector.0.requestHeaderSize=24576
Include parameters from several files
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 |
|---|---|
|
|
Path to directory containing the configuration root. |
|
|
Path to directory containing the configuration root. |
|
|
Path to directory containing the configuration root. |
|
|
Path to the current used service directory. |
|
|
The name of the current service. |
|
|
Path to the directory containing the variable data files. |
Scramble sensitive parameters
To scramble any configuration parameter in the configuration file:
-
Add the keyword
encryptedas 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.