Modify configuration of Domino REST API
About this task
Domino REST API is preconfigured with settings that allow you to get started right away. This task guides you on how to modify the settings by modifying the configuration parameters.
Before you begin
-
You must have access to the Management console to see the preconfigured settings.
Note
- Make sure the Management console is secure. For more information, see Functional Accounts.
- Credentials for the Management console aren't managed by the configured IdP, but are derived from the configuration of functional accounts.
-
Get a better understanding of the core configuration concepts and parameters that enable effective management and customization of the Domino REST API by checking the following topics:
Procedure
-
Log in to the Management console (Port 8889).
-
Click Config to see the preconfigured settings.
-
Identify and copy the configuration entries that you need to modify to change the preconfigured settings.
-
Create a JSON file using a text editor and paste the copied configuration entries to the JSON file.
Note
- Ensure that the structure of the configuration entries you copied into the JSON file exactly matches the structure you observed in the Config tab.
- Include only the entries you intend to modify in the JSON file
The following is an example of a configuration entry related to Domino REST API's metrics endpoint.
{ "metrics" : { "enabled" : true, "jvmMetricsEnabled" : false } }
-
Modify the value of the parameter and save the JSON file in the
keepconfig.d
directory.The following example shows the configuration entry after modifying the value of the
enabled
parameter tofalse
to disable Domino REST API'smetrics
endpoint. In this example, the metrics endpoint is disabled when you don't want to take advantage of the Prometheus formatted runtime metrics by using a metric server, such as Grafana.{ "metrics" : { "enabled": false, "jvmMetricsEnabled": false } }
Tip
Use a filename for the JSON file that reveals its purpose, such as
enable-names-nsf.json
. To learn more on how JSON files inkeepconfig.d
are processed, see configuration sources and overlay process. -
Restart Domino REST API on all servers.
Expected result
The updated configuration takes effect the next time you start Domino REST API.
Additional example
In this additional example, the protocol will be swapped by disabling TLSv1.2
and enabling TLSv1.3
.
The default configuration entry that you will see in the Config tab in the Management Console will look as follows:
{
/* Lots of JSON here */
"enabledProtocols": {
"TLSv1.3": false,
"TLSv1.2": true
}
/* more JSON here */
}
To update the configuration by swapping the protocols, the following configuration entry should be added to a JSON file, which is then saved in the keepconfig.d
directory.
{
"enabledProtocols": {
"TLSv1.3": true,
"TLSv1.2": false
}
}
The updated configuration takes effect after restarting Domino REST API.