summaryrefslogtreecommitdiffstats
path: root/src/webserver_main.cpp
diff options
context:
space:
mode:
authorEd Tanous <ed.tanous@intel.com>2017-04-18 17:49:51 -0700
committerEd Tanous <ed.tanous@intel.com>2017-04-18 17:49:51 -0700
commit01250f2a144846b493cf5cf8f5311b1bf3fe6c19 (patch)
tree429f8011d5245f28c948e3ea346a6e7fd494f0ca /src/webserver_main.cpp
parentb078cf37df19e1e2610c07002a63562e0e24edb4 (diff)
downloadbmcweb-01250f2a144846b493cf5cf8f5311b1bf3fe6c19.tar.gz
bmcweb-01250f2a144846b493cf5cf8f5311b1bf3fe6c19.zip
incremental
Diffstat (limited to 'src/webserver_main.cpp')
-rw-r--r--src/webserver_main.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/webserver_main.cpp b/src/webserver_main.cpp
index 949bdc1..d77d822 100644
--- a/src/webserver_main.cpp
+++ b/src/webserver_main.cpp
@@ -1,7 +1,3 @@
-#include <web_kvm.hpp>
-#include <webassets.hpp>
-#include "ssl_key_handler.hpp"
-
#include "crow/app.h"
#include "crow/ci_map.h"
#include "crow/common.h"
@@ -38,6 +34,10 @@
#include <string>
#include <unordered_set>
+#include <web_kvm.hpp>
+#include <webassets.hpp>
+#include "ssl_key_handler.hpp"
+
int main(int argc, char** argv) {
auto worker(g3::LogWorker::createLogWorker());
std::string logger_name("bmcweb");
@@ -116,8 +116,7 @@ int main(int argc, char** argv) {
conn.send_binary(str);
});
-
- app.port(18080)
- //.ssl(std::move(ensuressl::get_ssl_context(ssl_pem_file)))
- .run();
+ auto ssl_context = ensuressl::get_ssl_context(ssl_pem_file);
+ app.port(18080).ssl(std::move(ssl_context)).run();
}
+
OpenPOWER on IntegriCloud