Nginx change webport breaks active calls & network status

foldedSpace

New Member
Nov 17, 2020
5
0
1
57
I have managed to change the webport in from the default 443 in /etc/nginx/sites-enabled/fusionpbx to something else and updating the new port in iptables

It works but seems to break the active calls and network status, which does update or show realtime call events.
What would the solution and or fix to this?
Thanks in advance.

Using version
[td]Version[/td] [td]5.5.12[/td] [td]Git Information[/td] [td]Branch: 5.5[/td]
 
You'd probably have to go through the fusionpbx apps that use websockets to add bespoke ports to all the websocket definitions, you would then have to be cautious of any future updates to the codebase... unless you contributed some pull requests adding a customisable websocket port number in to the app_config.php

Code:
client = new ws_client(`wss://${window.location.hostname}/websockets/`, authToken);

becomes:

Code:
client = new ws_client(`wss://${window.location.hostname}:4433/websockets/`, authToken)

for example.

What was the intention of changing the port?