mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
hotfix PL #673
This commit is contained in:
parent
b02920c43c
commit
ee0418e719
@ -21,6 +21,11 @@ if (process.env.MM_CONFIG_FILE) {
|
|||||||
global.configuration_file = process.env.MM_CONFIG_FILE;
|
global.configuration_file = process.env.MM_CONFIG_FILE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Hotfix PullRequest #673
|
||||||
|
if (process.env.MM_PORT) {
|
||||||
|
global.mmPort = process.env.MM_PORT;
|
||||||
|
}
|
||||||
|
|
||||||
// The next part is here to prevent a major exception when there
|
// The next part is here to prevent a major exception when there
|
||||||
// is no internet connection. This could probable be solved better.
|
// is no internet connection. This could probable be solved better.
|
||||||
process.on("uncaughtException", function (err) {
|
process.on("uncaughtException", function (err) {
|
||||||
|
@ -7,8 +7,12 @@
|
|||||||
* MIT Licensed.
|
* MIT Licensed.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
var port = 8080;
|
||||||
|
if (typeof(mmPort) !== "undefined") {
|
||||||
|
port = mmPort;
|
||||||
|
}
|
||||||
var defaults = {
|
var defaults = {
|
||||||
port: process.env.MM_PORT || 8080,
|
port: port,
|
||||||
kioskmode: false,
|
kioskmode: false,
|
||||||
electronOptions: {},
|
electronOptions: {},
|
||||||
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"],
|
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user