From f8f464ef3f1a7be497b8c2026b7e6926eaa339ab Mon Sep 17 00:00:00 2001 From: EntireTwix Date: Mon, 12 Apr 2021 16:21:03 -0700 Subject: [PATCH] :bug: further SSL debugging --- main.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.cpp b/main.cpp index 4627638..77df02c 100644 --- a/main.cpp +++ b/main.cpp @@ -44,9 +44,7 @@ int main(int argc, char **argv) [](const drogon::HttpRequestPtr &req, const drogon::HttpResponsePtr &resp) { resp->addHeader("Access-Control-Allow-Origin", "*"); }); - app().addListener("0.0.0.0", 80).registerController(API).setThreadNum(std::stoul(argv[3])).enableRunAsDaemon().setSSLFiles("/etc/letsencrypt/live/ccash.ryzerth.com/fullchain.pem", "/etc/letsencrypt/live/ccash.ryzerth.com/privkey.pem"); - std::cout << app().supportSSL(); - app().run(); + app().loadConfigFile("../config.json").addListener("0.0.0.0", 80).registerController(API).setThreadNum(std::stoul(argv[3])).enableRunAsDaemon().run(); return 0; } \ No newline at end of file