mirror of
https://github.com/MichMich/MagicMirror.git
synced 2026-06-09 11:45:27 +00:00
chore: add missing core defaults (#4181)
Add defaults for config options that are already supported in core, so behavior is easier to understand and config stays consistent. This does not change runtime behavior. Refs #4159
This commit is contained in:
committed by
GitHub
parent
4492a83fe9
commit
3fd1591953
@@ -9,10 +9,18 @@ const defaults = {
|
||||
address: address,
|
||||
port: port,
|
||||
basePath: "/",
|
||||
useHttps: false, // Support HTTPS or not, default "false" will use HTTP
|
||||
httpsPrivateKey: "", // HTTPS private key path, only required when useHttps is true
|
||||
httpsCertificate: "", // HTTPS Certificate path, only required when useHttps is true
|
||||
tls: null, // Legacy compatibility option for Electron URL selection (prefer useHttps)
|
||||
electronOptions: {},
|
||||
electronSwitches: [],
|
||||
ignoreXOriginHeader: false, // Remove X-Frame-Options response header in Electron
|
||||
ignoreContentSecurityPolicy: false, // Remove Content-Security-Policy response header in Electron
|
||||
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"],
|
||||
cors: "disabled", // or "allowAll" or "allowWhitelist"
|
||||
corsDomainWhitelist: [], // example: ["api.mapbox.com"]
|
||||
watchTargets: [],
|
||||
|
||||
language: "en",
|
||||
logLevel: ["INFO", "LOG", "WARN", "ERROR"],
|
||||
|
||||
Reference in New Issue
Block a user