Fixes webserver protocol

This commit is contained in:
Praveen Gupta 2018-12-12 21:56:30 +05:30 committed by Iuri Matias
parent ca358b4622
commit 0950df242d
1 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,7 @@ class WebServer {
} }
this.host = this.webServerConfig.host; this.host = this.webServerConfig.host;
this.protocol = this.webServerConfig.protocol;
this.port = parseInt(this.webServerConfig.port, 10); this.port = parseInt(this.webServerConfig.port, 10);
this.enableCatchAll = this.webServerConfig.enableCatchAll === true; this.enableCatchAll = this.webServerConfig.enableCatchAll === true;
this.enableCatchAll = false; // FIXME when true, some Requests end up failing (eg: process-logs) this.enableCatchAll = false; // FIXME when true, some Requests end up failing (eg: process-logs)
@ -52,6 +53,7 @@ class WebServer {
this.embark.config.webServerConfig = null; this.embark.config.webServerConfig = null;
this.embark.config.loadWebServerConfigFile(); this.embark.config.loadWebServerConfigFile();
this.webServerConfig = this.embark.config.webServerConfig; this.webServerConfig = this.embark.config.webServerConfig;
this.protocol = this.webServerConfig.protocol;
this.host = this.webServerConfig.host; this.host = this.webServerConfig.host;
this.port = this.webServerConfig.port; this.port = this.webServerConfig.port;
this.server.host = this.host; this.server.host = this.host;