Jump to content
  • 0

WebSocket not connected after adding SSL

Tahmid Khandokar


Hello! There,

I've installed AMS enterprise edition (pay as you go package) and then I've added SSL with my Domain which is pointed to a EC2 Instance. And it works great. I can login to AMS with a account and also I've added the license.  
Now the problem is when I just try to test LiveApp/WebRTCEE using this URL, [https://golaiv-server.tech/LiveApp] OR [https://golaiv-server.tech/WebRTCAppEE], it shows the WebSocket not connected error. But when I used AMS using localhost it worked fine. For this error I couldn't use WSS to my application. I've added the browser console image in this post. Please help me. 




Thank you.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

FYI please,
@Tahmid Khandokarresolves the issue by removing the Nginx server.

Below configuration can be used to run the Ant Media Server behind the Nginx reverse proxy:

events {
    worker_connections 1048576;
    multi_accept on;
    use epoll;

server { 
            listen 443 ssl;
            ssl_certificate /etc/letsencrypt/live/your-domain-name/fullchain.pem;
            ssl_certificate_key /etc/letsencrypt/live/your-domain-name/privkey.pem;
            server_name your-domain-name;

            location / {
                proxy_pass http://your--ams-server-ip:5080/;
                proxy_http_version 1.1;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header Host $host;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "Upgrade";



  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...