S3 for File Uploads, not using defined CDN URL

Description

Hello there! I am using Amazon S3 (compatible) for attachments, when configuring this there is a setting for a CDN domain. However, even after setting this my Rocket.Chat instance uses the native S3 URL both inline and in downloads. I confirmed this with Devtools (Inspect Element, Network) and by checking the list of IPs hitting the CDN.

I’m wondering if this is a known bug, if there is some additional step that must be taken to enable this functionality, or something else entirely.

While I’m not sure it helps, the following is a redacted screenshot of my config.

If any more information is needed or if there is something I didn’t explain correctly feel free to let me know! I’m new to rocket.chat.

Server Setup Information

  • Version of Rocket.Chat Server: 4.3.2
  • Operating System: Ubuntu 20.04
  • Deployment Method: Snap
  • Number of Running Instances: 1 (1 dev, 1 prod)
  • DB Replicaset Oplog: N/A
  • NodeJS Version: v12.22.8
  • MongoDB Version: 4.2.17
  • Proxy: Included Caddy Instance
  • Firewalls involved: None

Any additional Information

I tried to use option CDN Domain for Downloads unsuccessfully and then read the source code. There is no code implemented for this feature.