I’ve installed the latest RocketChat on an Ubuntu 19.04 server and am using filesystem storage for uploads. Everything works fine when connecting to the site in the clear (i.e. via port 3000). I have Nginx set up as a reverse proxy per the instructions at https://rocket.chat/docs/installation/manual-installation/configuring-ssl-reverse-proxy/ . When accessing the site via SSL, everything seems to work except file uploads, which stick at 0%.
Oddly, I can upload from the mobile app, but not see any of the images uploaded. By contrast, uploads from the web browser (Firefox) are stuck at 0%, but I can see previously uploads in the channel.
I’ve found some forum postings suggesting I need to add the following to my Nginx configuration, which otherwise matches the Rocketchat documentation exactly (other than replacing your_hostname.com
with my domain name):
location /file-upload/ {
proxy_pass http://127.0.0.1:3000/file-upload/;
}
This does not fix the upload problem, however.
I also note the documentation states:
Note: You must use the outside https address for the value at
ROOT_URL
in [[Section 3 Deploy-Rocket.Chat-without-docker#3-download-rocketchat]] above. This includes thehttps://
and leave off the port number. So instead ofROOT_URL=http://localhost:3000
use something likehttps://your_hostname.com
However, when I make this change to the Rocketchat server, Nginx gives an error that the site cannot be found. ROOT_URL=http://mysite.com/ PORT=3000 works fine; ROOT_URL=https://mysite.com gives an Nginx error.
Any suggestions for how to troubleshoot? This seems to be a common problem based on other forum postings.