configure core - project-nano/releases GitHub Wiki
Core Installation and Configuration
Installation Path
The default installation path for the Core module is /opt/nano/core
Automatic Configuration
When the module starts, it checks whether the configuration file exists. If omitted, it will automatically prompt the user to confirm the configuration and create it.
Domain Configuration
parameters need to configure:
-
Communicate Domain Definition. Includes domain name, multicast address, port. Check definitions at communicate
-
Listening Address. Determine the IP address of the Core service to listen, and use this to determine the network segment where the entire cluster works. When only one network interface available, the Installer will automatically choose it and prompt the user, all you need is pressing Enter to accept. If multiple network interfaces available, the Installer will list the optional addresses, and let the user choose.
API Configuration
parameters need to configure:
- API Port. Determine the listening port that the Core module provides for REST API services. The default port is TCP 5850. The API interface uses the listening address of the Core. For example, if the listening address of the core is 172.16.8.6 and the API port is 5850, the actual API is served at 172.16.8.6:5850.
Image Server Configuration
parameters need to configure:
- TLS root file path. The default path is "/opt/nano/cert", which should have the certification file and the key file. Files are used to generate the self-signed TLS certificate need by the image server.
The Core module reads the TLS certificate and the secret key from the TLS root path, and generates a self-signed TLS certificate in the current path's cert directory, and saves the certificate location in the image configuration file.
Configure Files
The configuration files are saved in the config path of the core module and saved in JSON format.
Domain Configuration
File name:domain.cfg
Parameters:
-
"domain": communicate domain name, string, spaces and special characters are not allowed
-
"group_address":multicast address, string in the IPv4 format
-
"group_port": multicast port, integer
-
"listen_address": listening address of the core service,string in the IPv4 format
See communicate for more details
API Configuration
File name:api.cfg
Parameters:
- "port":listening port of REST API, integer
Image Server Configuration
File name:image.cfg
Parameters:
-
"cert_file":TLS certificate file location, string
-
"key_file":TLS key file location, string