TSS Node Configuration Methods
cobo-tss-node currently supports two configuration methods
Command lines as the one shown below:
./tss-node.sh start --ws-url=ws://ws.example.com/ws
Configuration files
Recommended priority
Configuration files > command lines
Modifying configuration file
Under the configs directory, copy and paste the file cobo-tss-node-config.yaml.template. Then, rename it to cobo-tss-node-config.yaml. The directory will be as follows:
Edit the cobo-tss-node-config.yaml file by removing the remark of the configuration item that needs to be modified and then update its content.
The following uses modifying "env" to "production" as an example:
Description
Please note that no configuration is required for the TSS Node. All configuration items below will be optional:
Configuration Item | Command Line | Description |
env | dev / prod | Operating environment; development / production environment; default: development environment
|
db/​​path | db | Database file that should not be modified |
callback/cb_server/service_address | cb-address | A list of callback server addresses |
callback/cb_server/pubkey_path | cb-pubkey | A list of callback server's RSA public keys in correspondence with the list of callback server addresses |
callback/token_expire_minutes | cb-token-expire | Timeout period of the callback server's JWT; default value: 2; unit: minutes |
callback/retry_times | cb-retry-times | Number of retries if the callback server request fails; default value: 2 |
callback/sleep_seconds | cb-sleep-seconds | Time interval between each retry if the callback server fails; default value: 15; unit: seconds |
callback/request_timeout | cb-request-timeout | Timeout period of HTTP request; default value: 10; unit: seconds |
callback/monitor_interval | cb-monitor-interval | Callback monitoring interval time (e.g. 10s); default value is empty, indicating it is not enabled |
websocket/url | ws-url | URL of the WebSocket server; no configuration is required and a WebSocket server will be connected based on the environment; if an URL is configured, it will be connected by default |
log/std/enable | log-std-enable | Whether to output the log |
log/file/enable | log-file-enable | Whether to save the log |
log/file/filename | log-file-name | Log file name |
log/file/maxsize | log-file-maxsize | Maximum size of the log file |
log/file/max_backups | log-file-max-backups | Number of backups for each log file
|
Last updated