Baetyl-activation Configuration
Last Updated:2020-08-18
By default, the module reads configuration file from the etc/baetyl working directory, and the configuration file format is interpreted as follows:
interval: [Must] Time interval of request again after failure of automatic activation mode, 10s at minimum.
server: Auto activation alternative; in the manual activation mode, type in the activation information page access address, at this time, pay attention to corresponding port of mapping.
listen: 0.0.0.0:16868 # web ui ip and port
pages: var/db/baetyl/page # web ui page loading address
fingerprints:Auto activation alternative; in the automatic activation mode, the first non-empty information is obtained as fingerprint according to the list sequence, and mac, cpu, hostID, and sn files are now supported.
- proof: mac #Fingerprint pattern: mac address
value: ene0 #Network card with mac address to be obtained
- proof: cpu #Fingerprint pattern: cpu ID
- proof: hostID #Fingerprint pattern: hostID
- proof: sn #Fingerprint pattern: snFile mapping
value: sn #Record the file name of sn data
client: [Must] Activate the service-related configuration
address: Activate the service interface address
insecure: Security verification needed or not
ca: It is needed when insecure is false, and you should load the secret key from ca path.
attributes: [Must] Activate the related field and pre-configuration data
- name: deviceCompany #Field name: Device manufacturer
label: #Field comment information: Device manufacturer
value: #Pre-configuration data
- name: masterKey #The secret key “one type, one key” is generated according to deviceCompany and deviceType on the server.
label:
value:
- name: deviceType #Field name: Device type
label:
value:
logger: Log configuration item
path: #It is empty by default, i.e., no file is printed; if a file is appointed, it will be output to file.
level: #Default value: Info, log level, supporting debug, info, warn and error.
format: #Default value: Text, log print format, supporting text and json.
age:
max: #Default value: 15, Maximum number of days a log file is retained.
size:
max: #Default value: 50, Log file size limit, unit MB
backup:
max: #Default value: 15, Maximum number of log files retained.