You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- remove config.js.template (incl. envsub dependency) and allow bash variables in config.js
- centralize loadConfig in Utils for use in app and check_config
- add functionality to hide secrets in browser (only for node_helper modules), per default off
Log.error(`WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: ${e.stack}`);
143
-
}else{
144
-
Log.error(`WARNING! Could not load config file. Starting with default configuration. Error found: ${e}`);
145
-
}
146
-
}
147
-
148
-
returndefaults;
149
-
}
150
-
151
-
/**
152
-
* Checks the config for deprecated options and throws a warning in the logs
153
-
* if it encounters one option from the deprecated.js list
Log.warn(`WARNING! Your config is using deprecated option(s): ${usedDeprecated.join(", ")}. Check README and Documentation for more up-to-date ways of getting the same functionality.`);
Log.warn(`WARNING! Your config for module ${element.module} is using deprecated option(s): ${usedDeprecatedModuleOptions.join(", ")}. Check README and Documentation for more up-to-date ways of getting the same functionality.`);
173
-
}
174
-
}
175
-
}
176
-
}
177
-
178
61
/**
179
62
* Loads a specific module.
180
63
* @param {string} module The name of the module (including subpath).
Copy file name to clipboardExpand all lines: js/defaults.js
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@ const defaults = {
21
21
customCss: "config/custom.css",
22
22
foreignModulesDir: "modules",
23
23
defaultModulesDir: "defaultmodules",
24
+
hideConfigSecrets: false,
24
25
// httpHeaders used by helmet, see https://helmetjs.github.io/. You can add other/more object values by overriding this in config.js,
25
26
// e.g. you need to add `frameguard: false` for embedding MagicMirror in another website, see https://github.com/MagicMirrorOrg/MagicMirror/issues/2847
0 commit comments