added basename config

use basename in socket.io path fix #1973
This commit is contained in:
Leon Kiefer
2020-04-05 23:00:38 +02:00
parent ca3275757b
commit 54542f7f07
4 changed files with 6 additions and 1 deletions

View File

@@ -15,6 +15,8 @@ var config = {
// - "0.0.0.0", "::" to listen on any interface
// Default, when address config is left out or empty, is "localhost"
port: 8080,
basename: "/", // The URL pathname where MagicMirror is hosted. If you are using a Reverse proxy
// you must set the sub path here. basename must end with a /
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 :
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],