mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 03:39:55 +00:00
renamed basename to basePath
This commit is contained in:
parent
eb37a495a2
commit
e6c0011789
@ -15,8 +15,8 @@ var config = {
|
|||||||
// - "0.0.0.0", "::" to listen on any interface
|
// - "0.0.0.0", "::" to listen on any interface
|
||||||
// Default, when address config is left out or empty, is "localhost"
|
// Default, when address config is left out or empty, is "localhost"
|
||||||
port: 8080,
|
port: 8080,
|
||||||
basename: "/", // The URL pathname where MagicMirror is hosted. If you are using a Reverse proxy
|
basePath: "/", // The URL path where MagicMirror is hosted. If you are using a Reverse proxy
|
||||||
// you must set the sub path here. basename must end with a /
|
// you must set the sub path here. basePath must end with a /
|
||||||
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
|
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
|
||||||
// or add a specific IPv4 of 192.168.1.5 :
|
// or add a specific IPv4 of 192.168.1.5 :
|
||||||
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
|
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
|
||||||
|
@ -15,7 +15,7 @@ if (typeof(mmPort) !== "undefined") {
|
|||||||
var defaults = {
|
var defaults = {
|
||||||
address: address,
|
address: address,
|
||||||
port: port,
|
port: port,
|
||||||
basename: "/",
|
basePath: "/",
|
||||||
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"],
|
||||||
|
@ -9,7 +9,7 @@ var MMSocket = function(moduleName) {
|
|||||||
|
|
||||||
// Private Methods
|
// Private Methods
|
||||||
self.socket = io("/" + self.moduleName, {
|
self.socket = io("/" + self.moduleName, {
|
||||||
path: config.basename + "socket.io"
|
path: config.basePath + "socket.io"
|
||||||
});
|
});
|
||||||
var notificationCallback = function() {};
|
var notificationCallback = function() {};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user