Quantcast
Channel: Mattermost Discussion Forums - Latest posts
Viewing all articles
Browse latest Browse all 25778

Upgraded from 3.7 to 3.8 broke websockets! help!

$
0
0

Hello everything was working fine.. I upgraded like I always do... log in.. got a msg to add a URL in the console/configuration field.. I added my url... and after that I get:
websocket connect err: websocket: origin not allowed
/api/v3/users/websocket:connect code=500 rid=4che7w3383r88qxswssi53nkwh uid= ip=107.182.x.x Failed to upgrade websocket connection [details: ]

I changed the URL to all my interfaces and restarted with same issue...

MY setup?

nginx port 443 port 80 redirect to 443
config for nginx:

server {
      listen 443 ssl;
      server_name chat.mydomain.info o5imyonion.onion chat.mydomain;

      ssl on;
      ssl_certificate  /etc/letsencrypt/live/chat.mydomain.info/fullchain.pem;
      ssl_certificate_key /etc/letsencrypt/live/chat.mydomain.info/privkey.pem;
      ssl_dhparam /home/mattermost/cert/dhparam.pem;
      ssl_session_timeout 5m;
      ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
      ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
      ssl_prefer_server_ciphers on;
      ssl_session_cache shared:SSL:10m;


      location / {
        gzip off;
        proxy_set_header X-Forwarded-Ssl on;
        client_max_body_size 50M;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $http_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;
        proxy_set_header X-Frame-Options SAMEORIGIN;
        proxy_pass http://127.0.0.1:8065;
     }
   }

on mattermost I have added this two changes..
on the URL "enforced" field now..(I dont know why you guys force this.. when it SHOULD be an option to admins... not you...
I have http://127.0.0.1 (had my external ip, my external domains all of them, this is just the last one I tried)
for port I have:
127.0.0.1:8065

why? nginx is forwarding the connection to localhost:8065 as you can see in the nginx config above..

Please help all my users are complaining .. :confused:


Viewing all articles
Browse latest Browse all 25778

Trending Articles