<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Menderes Keskin</title>
    <description>The latest articles on DEV Community by Menderes Keskin (@menderes).</description>
    <link>https://dev.to/menderes</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F633781%2Fb34287ee-c11e-46c6-9860-ced2e053002c.png</url>
      <title>DEV Community: Menderes Keskin</title>
      <link>https://dev.to/menderes</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/menderes"/>
    <language>en</language>
    <item>
      <title>Rocket Chat iOS WebSocket Error</title>
      <dc:creator>Menderes Keskin</dc:creator>
      <pubDate>Wed, 19 May 2021 01:43:22 +0000</pubDate>
      <link>https://dev.to/menderes/rocket-chat-ios-websocket-error-1bpd</link>
      <guid>https://dev.to/menderes/rocket-chat-ios-websocket-error-1bpd</guid>
      <description>&lt;p&gt;Hello to everyone,&lt;/p&gt;

&lt;p&gt;I redesign the on-prem building with micro architecture. I started Rocket Chat in docker, but on iOS devices; When I log in, "Websocket has been disabled. Contact the system administrator." warning was available.&lt;/p&gt;

&lt;p&gt;I did a little research to fix the problem. If you add the following commands to your Nginx configuration file, the problem is solved.&lt;/p&gt;

&lt;p&gt;Happy days everyone.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;upstream rocket {
   server [CONTAINER_IP:PORT];
}

server {
   listen 443 ssl;
   client_max_body_size 200M;                                        
   server_name ROCKETCHATURL;                                      
   access_log /dev/stdout;
  # I use "valian/docker-nginx-auto-ssl" image.                                         
   include resty-server-https.conf;                                  
 location / {                                                      
   proxy_pass http://rocket;                                         
   proxy_http_version 1.1;                                           
   proxy_set_header Upgrade $http_upgrade;                           
   proxy_set_header Connection $connection_upgrade;                  
   proxy_set_header Host $host;                                      
 }      
 location ~ "/sockjs/[\d]{3}/[\w]{8}/websocket" {
   proxy_pass http://rocket;
   proxy_http_version 1.1;
   proxy_set_header Upgrade $http_upgrade;
   proxy_set_header Connection $connection_upgrade;
   proxy_set_header Host $http_host;
   proxy_set_header X-Forwarded-For  $proxy_add_x_forwarded_for;
   proxy_set_header X-Real-IP $remote_addr;
   proxy_set_header X-Forwarded-Origin ''
  }
 location /websocket {
   proxy_pass http://rocket;
   proxy_http_version 1.1;      
   proxy_set_header Upgrade $http_upgrade;
   proxy_set_header Connection $connection_upgrade;
   proxy_read_timeout 7d;
   proxy_set_header Host $http_host;
   proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
   proxy_set_header X-Real-IP $remote_addr;
   proxy_set_header X-Forwarded-Origin '';
 }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>ios</category>
      <category>docker</category>
    </item>
  </channel>
</rss>
