After enabling Force SSL, redirect loop

Description

After enabling Force SSL, redirect loop. How do I correct this issue?

Server Setup Information

  • Version of Rocket.Chat Server:
  • Operating System: ubuntu 20.04
  • Deployment Method: docker
  • Number of Running Instances: 1
  • Proxy: nginx
  • Firewalls involved: no firewalls no reverse proxy

➔ ±--------------------------------------------------------------------+
➔ | SERVER RUNNING |
➔ ±--------------------------------------------------------------------+
➔ | |
➔ | Rocket.Chat Version: 3.18.1 |
➔ | NodeJS Version: 12.22.1 - x64 |
➔ | MongoDB Version: 4.0.27 |
➔ | MongoDB Engine: mmapv1 |
➔ | Platform: linux |
➔ | Process Port: 3000 |
➔ | Site URL: [hidden] |
➔ | ReplicaSet OpLog: Enabled |
➔ | Commit Hash: 73ab3c26a7 |
➔ | Commit Branch: HEAD |
➔ | |
➔ ±--------------------------------------------------------------------+

Any additional Information

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d49b77f6a667 rocketchat/hubot-rocketchat:latest “/bin/sh -c 'node -e…” 2 weeks ago Restarting (1) 20 seconds ago root_hubot_1
b9ffd666c5f6 registry.rocket.chat/rocketchat/rocket.chat:latest “docker-entrypoint.s…” 2 weeks ago Up 22 minutes 0.0.0.0:3000->3000/tcp, :::3000->3000/tcp root_rocketchat_1
c874611ec686 mongo:4.0 “docker-entrypoint.s…” 2 weeks ago Exited (0) 2 weeks ago root_mongo-init-replica_1
a1aa57e2739c mongo:4.0 “docker-entrypoint.s…” 2 weeks ago Up 37 hours 27017/tcp root_mongo_1

no timestamp on the log messages?

server.js:204 System ➔ error Exception while invoking method saveSettings TOTP Required [totp-required]
Updating process.env.MAIL_URL
Exception in defer callback: [Error: 139814174132096:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:…/deps/openssl/openssl/ssl/record/ssl3_record.c:332:
] {
library: ‘SSL routines’,
function: ‘ssl3_get_record’,
reason: ‘wrong version number’,
code: ‘ESOCKET’,
command: ‘CONN’
}
Exception in defer callback: [Error: 139814174132096:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:…/deps/openssl/openssl/ssl/record/ssl3_record.c:332:
] {
library: ‘SSL routines’,
function: ‘ssl3_get_record’,
reason: ‘wrong version number’,
code: ‘ESOCKET’,
command: ‘CONN’
}