Some Docker containers like Rocket.Chat, Documize, Hemmelig, ThingsBoard, WatchYourLAN, CloudBeaver, Home Assistant, Home Assistant Supervisor, Uptime Kuma, Planka, Firefox, Shellngn, Audiobookshelf, NocoDB, Calibre, Monica, Wallabag, Scrypted, Sshwifty, Focalboard, Hoppscotch, Minecraft (Not All) need WebSocket activation in order to work over an HTTPS connection (Reverse Proxy).
What is WebSocket? A WebSocket is a persistent connection between a client and server. WebSockets provide a bidirectional, full-duplex communications channel that operates over HTTP through a single TCP/IP socket connection. At its core, the WebSocket protocol facilitates message passing between a client and server.
Today, I will teach you how to activate WebSocket on some of your Docker Containers that need it.
Go to Control Panel / Login Portal / Advanced / Reverse Proxy. Follow the instructions in the image below:
Select your Reverse Proxy then click the Edit tab. Follow the instructions in the image below.
On the Reverse Proxy Rules click the Custom Header tab. Click Create and then, from the drop-down menu, click WebSocket. After you click on WebSocket, two Header Names and two Values will be automatically added. Click Save. Follow the instructions in the image below.
Note: From now on your Docker containers that need WebSocket in order to function over HTTPS will work.
This post was updated on Monday / October 3rd, 2022 at 12:33 AM