Install the Discovery Module - Linux - Customizing Service Settings
You may wish to customize the Logi services settings which, assuming a default installation location, can be found in these files:
<installationFolder>\platform\settings\logiApplicationService.json
<installationFolder>\platform\settings\logiDataService.json
The beginning of the logiApplicationService.json file looks like this:
{
"disableSchemaValidation": false,
"logiApplicationService": {
"description": "Platform logiApplicationService Configuration",
"logLevel": "error",
"corsOriginWhiteList": "*",
"accessTokenGracePeriod": 120,
"system": {
"pollingIntervalSeconds": 15,
"pollingTimeoutMinutes": -1
},
For example, the corsOriginWhiteList attribute, which is required, specifies which servers the service will respond to, allowing you to restrict access to the service, if desired. The default value, "*", tells the service to respond to all servers; to restrict access enter a single IP address or server name (as a string) or a JSON array of them, such as:
["http://server1","http://server2","http://192.168.1.1"]
Changes to some settings may cause applications to fail. For example,
changing the platformBaseUrl setting, shown above, may cause integrations with Logi Info applications to fail.
You will need to stop and restart both services to have any changes to the settings file take effect.
Special thanks to contributing writer Matt Grogan.