Repeated Site URL configuration warnings, even though the value is correctly entered


note that I intentionally broke the formatting on the URLs below because the forum software was interpreting them as actual URLs, and new accounts aren’t allowed to post more than 2 URLs in a post. Note that, on my actual server, the URLs are correctly formatted.

We have a rocketchat instance running on a Ubuntu VPS, with nginx serving as reverse proxy (and also handling SSL.) Periodically (maybe once every 2-3 days) everyone connecting to the server gets the warning message “The setting Site URL is configured to http//localhost:3000 and you are accessing from https// Do you want to change to https//” The funny thing is that, when I check in the Admin panel -> General -> Site URL our URL IS correctly entered there. (also, “Force SSL” is DISABLED since it clearly states that it shouldn’t be used with reverse proxy.) Everything else about the server is working properly, and people are able to connect once they click past the warning message. I’ve looked through settings for any other setting that looks relevant, but nothing else jumps out at me. Any ideas?

Server Setup Information

  • Version of Rocket.Chat Server: 4.3.2 - 1510
  • Operating System: Ubuntu 20.04.3 Server
  • Deployment Method: snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version: v12.22.8
  • MongoDB Version: 4.2.17
  • Proxy: nginx 1.18.0-0ubuntu1.2
  • Firewalls involved: no

Any additional Information

Hi and welcome to our forums!

One thing that could cause this, is that you may have some env variable that, for some reason, kicks in sometime for some reason.

Can you please check about it? on this link there is a section about changing environmental variables.

Also, i strongly suggest to use docker instead of snaps :slight_smile: