diff --git a/CHANGELOG.md b/CHANGELOG.md index 0236e6de44..7459f2c1bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). - Fix regression in currentweather module causing 'undefined' to show up when config.hideTemp is false - Fix FEELS translation for Croatian - Fixed weather tests [#1840](https://github.com/MichMich/MagicMirror/issues/1840) +- Fixed Socket.io can't be used with Reverse Proxy in serveronly mode [#1934](https://github.com/MichMich/MagicMirror/issues/1934) - Fix update checking skipping 3rd party modules the first time ### Updated diff --git a/index.html b/index.html index d860425678..5a46bb72af 100644 --- a/index.html +++ b/index.html @@ -37,7 +37,7 @@
- + diff --git a/js/socketclient.js b/js/socketclient.js index baead68e6e..5e138636f0 100644 --- a/js/socketclient.js +++ b/js/socketclient.js @@ -8,7 +8,9 @@ var MMSocket = function(moduleName) { self.moduleName = moduleName; // Private Methods - self.socket = io("/" + self.moduleName); + self.socket = io("/" + self.moduleName, { + path: window.location.pathname + "socket.io" + }); var notificationCallback = function() {}; var onevent = self.socket.onevent;