Control: tags -1 + patch
A friend suggested the following patch, and I can confirm that it
succeed in making sure the web page connect to the correct location,
even when exposed behind a reverse proxy.
diff --git a/tools/server/public_simplechat/simplechat.js
b/tools/server/public_simplechat/simplechat.js
index c67577d..03c6cc7 100644
--- a/tools/server/public_simplechat/simplechat.js
+++ b/tools/server/public_simplechat/simplechat.js
@@ -722,7 +722,7 @@ class MultiChatUI {
class Me {
constructor() {
- this.baseURL = "http://127.0.0.1:8080";
+ this.baseURL =
`${window.location.protocol}//${window.location.hostname}:8080`;
this.defaultChatIds = [ "Default", "Other" ];
this.multiChat = new MultiChatUI();
this.bStream = true;
--
Happy hacking
Petter Reinholdtsen