Some Docker containers like Rocket.Chat, Home Assistant, Uptime Kuma, Planka, Firefox, Shellngn, Audiobookshelf, NocoDB, Calibre, Scrypted, Sshwifty, Focalboard, Hoppscotch (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 Wednesday / April 20th, 2022 at 5:11 AM