Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions js/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down