From 23e5807a30292c51b330cee89f500f0100f33446 Mon Sep 17 00:00:00 2001 From: EntireTwix Date: Thu, 22 Apr 2021 00:42:35 -0700 Subject: [PATCH] forgot legacy code --- config.json | 7 ------- main.cpp | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/config.json b/config.json index 5576c78..eeadc3c 100644 --- a/config.json +++ b/config.json @@ -4,13 +4,6 @@ "address": "0.0.0.0", "port": 80, "https": false - }, - { - "address": "0.0.0.0", - "port": 443, - "https": true, - "cert": "", - "key": "" } ] } \ No newline at end of file diff --git a/main.cpp b/main.cpp index 2b2d69d..60f994c 100644 --- a/main.cpp +++ b/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; } \ No newline at end of file