Skip to content

RocketChat server startup CDN environment vars not getting applied #17171

@kaji-bikash

Description

@kaji-bikash

Description:

This is regarding CDN setting behavior for the RocketChat server. Looking through the genesis of this configuration in this PR #11779 and current state on this affair

We have rocketchat server in AWS EC2 instances and we have set user upload type to S3. In order to deliver static resources as fast as possible, we are trying to use AWS cloudfront(CDN) service (with same S3 bucket backend). To put this in effect, we set the environment variable as follows

CDN_PREFIX_ALL=xxxxxxxxxx.cloudfront.net

Expected behavior:

This is supposed to work as follows

"CDN_PREFIX_ALL": "Use CDN Prefix for all assets",

Actual behavior:

Even with CDN prefix environment variable set, RocketChat still uses signed S3 bucket URL for avatar, user uploads and user rocketchat domain name for meteor's bundled assets.

Server Setup Information:

  • Version of Rocket.Chat Server: 1.3.3
  • Operating System: Ubuntu 16.04
  • Deployment Method: tar
  • Number of Running Instances: 2 processes in the same machine
  • DB Replicaset Oplog: Enabled
  • NodeJS Version: 8.17
  • MongoDB Version: 3.6.13

Client Setup Information

  • Desktop App / Latest Chrome version

Additional context

How does would it behave in relation to administrative settings in S3 upload setting. I have put a separate issue on this here #17162

Metadata

Metadata

Assignees

No one assigned

    Labels

    stat: staleStale issues will be automatically closed if no activity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions