Pass a big portion of Autobahn over SSL

This commit is contained in:
Alex Hultman
2018-11-29 09:59:03 +01:00
parent 6c9ac88f50
commit 3e769fb841
5 changed files with 55 additions and 12 deletions
+10 -1
View File
@@ -9,7 +9,16 @@ int main(int argc, char **argv) {
};
uWS::App().get("/hello", [](auto *res, auto *req) {
/*const char *key_file_name;
const char *cert_file_name;
const char *passphrase;
const char *dh_params_file_name;*/
uWS::SSLApp({
"/home/alexhultman/key.pem",
"/home/alexhultman/cert.pem",
"1234"
}).get("/hello", [](auto *res, auto *req) {
res->end("Hello HTTP!");
}).ws<void>("/*", {
/*.compression = */true,