forgot legacy code

This commit is contained in:
EntireTwix 2021-04-22 00:42:35 -07:00
parent ae483eac09
commit 23e5807a30
2 changed files with 1 additions and 8 deletions

View file

@ -4,13 +4,6 @@
"address": "0.0.0.0", "address": "0.0.0.0",
"port": 80, "port": 80,
"https": false "https": false
},
{
"address": "0.0.0.0",
"port": 443,
"https": true,
"cert": "",
"key": ""
} }
] ]
} }

View file

@ -44,7 +44,7 @@ int main(int argc, char **argv)
[](const drogon::HttpRequestPtr &req, const drogon::HttpResponsePtr &resp) { [](const drogon::HttpRequestPtr &req, const drogon::HttpResponsePtr &resp) {
resp->addHeader("Access-Control-Allow-Origin", "*"); 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; return 0;
} }