Error connecting to the Janus WebSockets server: Is the server down?

I am trying to access my KVM server through a proxy (NGINX). However, when I do so, I encounter the following error message at the bottom of the screen: "Error connecting to the Janus WebSockets server: Is the server down?"

Interestingly, when I access the server directly, everything functions as expected without any issues. I have also attempted to use my own certificate, and it appears that the HTTPS connection is working correctly. Despite this, I am still receiving the error message. Can anyone provide guidance on resolving this issue?

Please make sure your firmware has been upgraded to the latest version 1.1.1.
In addition, I would like to know if your network environment has frequent changes in public IP?

Just using internal network penetration or reverse proxy tools may not work properly. If the network where comet is located is not NAT1, it is very likely to encounter the problem of webrtc hole drilling failure, and thus be unable to connect to the janus server

I got it working by changing the NGINX config:

server {
listen 443 ssl;
server_name xx.xx.xx;
ssl_certificate /client/cert/fullchain1.pem;
ssl_certificate_key /client/cert/privkey1.pem;
location / {
proxy_pass https://192.168.0.177;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}