RocketChat / RocketChat/Rocket.Chat

Can't configure CDN for rocket chat

Open
#21,926 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

Try to use CDN in General page, but the behavior was not expected.

I want to configure my own 302 cdn service for rocket chat to serve the files and assets.
But after some tests, I found the settings are much like:
origin: https://chat.xx.com -> https://chat.xx.com/cdnpreix/...

Actually, when we use cdn, the behavior should be like:
https://chat.xx.com/video/filehash1 -> https://cdn1.yy.com/filehash1

Can we have the way to do this?

Steps to reproduce:
  1. Go to 'General'
  2. Set CDN Prefix
  3. Boom!
Server Setup Information:
  • Version of Rocket.Chat Server: 3.13.3
  • Operating System: Ubuntu 18.04
  • Deployment Method: docker
  • Number of Running Instances: 1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the General settings and trace the CDN Prefix configuration and the asset URLs it produces. Compare the current /cdnprefix/... behavior with the requested redirect to the configured CDN, then verify that file and asset URLs resolve correctly; the issue names no source files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cloud
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.