Updated Readme, links, cleanup

This commit is contained in:
BenDroid 2017-10-26 23:27:58 +02:00
parent df55481986
commit 4ebd05e246
7 changed files with 18 additions and 93 deletions

View file

@ -92,7 +92,7 @@ unsigned Service::handlePOST(const Options* options, const std::string& url, con
unsigned resultCode = MHD_HTTP_NOT_FOUND;
LOG_INFO("POST(url='%s', clientId='%s', data='%s')", url.c_str(), clientId.c_str(), data.c_str());
LOG_INFO("POST(url='%s', clientId='%s', dataLen='%d')", url.c_str(), clientId.c_str(), data.length());
if (url.rfind("/client/setClientStatus", 0) == 0) {
resultCode = setClientStatus(clientId, data, resp);
@ -160,7 +160,7 @@ unsigned Service::setClientConfig(const Options* options, const std::string &cli
if (clientConfigFile){
rapidjson::StringBuffer buffer(0, 4096);
rapidjson::Writer<rapidjson::StringBuffer> writer(buffer);
rapidjson::PrettyWriter<rapidjson::StringBuffer> writer(buffer);
writer.SetMaxDecimalPlaces(10);
document.Accept(writer);

View file

@ -30,7 +30,7 @@
},
"cc-client": {
"url": "localhost:3344", // url of the CC Server (ip:port)
"access-token": null, // access token for CC Server (has to be the same in config_cc.json)
"access-token": "mySecret", // access token for CC Server (has to be the same in config_cc.json)
"worker-id": null // custom worker-id for CC Server (otherwise hostname is used)
}
}

View file

@ -5,7 +5,7 @@
"syslog": false, // use system log for output messages
"cc-server": {
"port": 3344, // port the CC Server will listens on
"access-token": null, // access token for CC Clients (should be set!!!)
"access-token": "mySecret", // access token for CC Clients (should be set!!!)
"user": "admin", // admin user for access CC Dashboard
"pass": "pass", // admin pass for access CC Dashboard
"client-config-folder" : null, // folder which contains the client-config files (null=current)

View file

@ -30,7 +30,7 @@
},
"cc-client": {
"url": "localhost:3344", // url of the CC Server (ip:port)
"access-token": null, // access token for CC Server (has to be the same in config_cc.json)
"access-token": "mySecret", // access token for CC Server (has to be the same in config_cc.json)
"worker-id": null // custom worker-id for CC Server (otherwise hostname is used)
}
}