How Add a WebSocket Proxy in new cyber panel 2023

Based on this tutorial Setting up WebSocket Proxies on OpenLiteSpeed – OpenLiteSpeed how can i enable WebSocket Proxy in new cyber panel 2023?

Consigo utilizar o WS porém não consigo o WSS com laravel websocket

My version

1 Like

Were you able to get it to work?
I also need the procedure

1 Like

yes!

  1. Configure the Admin user and password for the Web server in SSH
sudo /usr/local/lsws/admin/misc/admpass.sh
Please specify the user name of administrator.
This is the user name required to login the administration Web interface.

User name [admin]: <Enter the User name here>

Please specify the administrator's password.
This is the password required to login the administration Web interface.

Password:<Enter the password>
Retype password:<Re-enter the password>
Administrator's username/password is updated successfully!

  1. Start the OpenLiteSpeed server
sudo /etc/init.d/lsws start
  1. Go to https://server-ipaddress:7080

  2. Add a WebSocket Proxy to Your Virtual Host. Tutorial: Setting up WebSocket Proxies on OpenLiteSpeed – OpenLiteSpeed

The WebSocket Proxy tab is inside your virtual host settings (WebAdmin console > Virtual Hosts > your virtual host > WebSocket Proxy > Add).

Enter the URI for your WebSocket application (relative to your virtual host’s domain) and the Address of the WebSocket backend.

The libwebsocket test page, “test.html”, has the WebSocket application URI set as ws://domain/, so I set my URI to /. By default, the libwebsocket server listens on 127.0.0.1:7681, so that’s my address value. You can configure your pages and backends to have the WebSocket application in a different URI and your backend at a different location.

Restart
image

with this, the server automatically redirected to the one using wss

1 Like