Using the configuration file.
Set authentication endpoint in configuration file
To enhance security and flexibility, you can directly set the notification endpoints in the configuration.json
-file.
Example configuration for notification endpoints:
You can configure multiple callbacks by listing them in an array, allowing you to set different endpoints for different types of notifications.
Set API Network Settings in configuration file.
The configuration.json
file also contains network settings:
On line 2, you can enable or disable SSL by setting the protocol to either
https
(for SSL) orhttp
(without SSL):If SSL is enabled, specify the certificates to use:
On line 32, you can update the port number used for incoming requests:
Restart the API service after modifying these settings.
Set logging parameters in configuration file.
You can fine-tune logging by modifying the log4js
section in the configuration.json
-file. The most important setting is the level
parameter:
Default logging, level setting - debug
debug
Increased logging, level setting - trace
trace
Please note: the "trace" will generate a lot of logging.*
Configure log, file settings.
EXAMPLE for compressing the logs automatically and using rotating logfiles with a limited size:
Above configuration retains 7 compresse log backups.
You can use all the log4js
-settings, which are documented on the
Last updated