Updated Readme, links, cleanup
This commit is contained in:
parent
df55481986
commit
4ebd05e246
7 changed files with 18 additions and 93 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue