mirror of https://github.com/embarklabs/embark.git
Fixes webserver protocol
This commit is contained in:
parent
ca358b4622
commit
0950df242d
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue