imharvol / mineflayer-web-inventory

Web based viewer for your mineflayer bot's inventory
MIT License
79 stars 19 forks source link

Added support for proxy #42

Closed sefirosweb closed 6 months ago

sefirosweb commented 6 months ago

I needed to change the variable "window" to "botWindow" because i need use them to get "window.location.pathname"

 const socket = io({
      path: window.location.pathname + 'socket.io',
    });

And a bit changes to use relative path for css & js

With that changes you can make a dynamic proxy :D

image

imharvol commented 6 months ago

Thank you! Released in v1.8.5

There's an open issue about supporting multiple bots in case you are willing to share your code: #40

sefirosweb commented 6 months ago

Done! and thanks! Made a reverse proxy is a bit complex but is awesome to use all web inventory in 1 port / bot manager