I have not been able to get rocket.chat to login through the app. I am using a snap and have done the whole snap refresh thing. Here if my Apache configuration file code:
<IfModule mod_ssl.c>
<VirtualHost *:443>
ErrorLog /var/log/chat_error.log
TransferLog /var/log/chat_access.log
LogLevel info
ServerName chat.xxx.org
SSLEngine On
SSLCertificateFile /etc/letsencrypt/live/xxx.org/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/xxx.org/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/xxx.org/chain.pem
Include /etc/letsencrypt/options-ssl-apache.conf
<Location />
Order allow,deny
Allow from all
</Location>
RewriteEngine On
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule /var/www/(.*) ws://localhost:3000/$1 [P,L]
RewriteCond %{HTTP:Upgrade} !=websocket [NC]
RewriteRule /var/www/(.*) http://localhost:3000/$1 [P,L]
</VirtualHost>
</IfModule>
I did use a snap to install this so I was not completely sure on where the RewriteEngine needed to be directed to. Whenever I try to login through the app, it seems like it’s going to login but then it goes away and doesn’t login. I have not been able to try to use the Android app, but the iOS one is the one that has not been working for me. The desktop client and online version do work, though.