mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 00:22:14 +11:00
forgot legacy code
This commit is contained in:
parent
ae483eac09
commit
23e5807a30
2 changed files with 1 additions and 8 deletions
|
|
@ -4,13 +4,6 @@
|
|||
"address": "0.0.0.0",
|
||||
"port": 80,
|
||||
"https": false
|
||||
},
|
||||
{
|
||||
"address": "0.0.0.0",
|
||||
"port": 443,
|
||||
"https": true,
|
||||
"cert": "",
|
||||
"key": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
2
main.cpp
2
main.cpp
|
|
@ -44,7 +44,7 @@ int main(int argc, char **argv)
|
|||
[](const drogon::HttpRequestPtr &req, const drogon::HttpResponsePtr &resp) {
|
||||
resp->addHeader("Access-Control-Allow-Origin", "*");
|
||||
});
|
||||
app().loadConfigFile("../config.json").registerController(API).setThreadNum(std::stoul(argv[3])).run();
|
||||
app().loadConfigFile("../config.json").registerController(API).setThreadNum(std::stoul(argv[3])).enableRunAsDaemon().run();
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Reference in a new issue