Add HTTPS support

This commit is contained in:
karenorman
2020-02-01 20:46:26 +08:00
parent 4c2a9b47f5
commit c8c327b6ab
4 changed files with 23 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
var app = require("../js/app.js");
app.start(function(config) {
var bindAddress = config.address ? config.address : "localhost";
console.log("\nReady to go! Please point your browser to: http://" + bindAddress + ":" + config.port);
var httpType = config.useHttps ? "https" : "http";
console.log("\nReady to go! Please point your browser to: " + httpType + "://" + bindAddress + ":" + config.port);
});