How to enabled user custom avatars from CDN?

(Prashant Gohel) #1


I am using s3 to store custom avatars uploaded by users. I am running on version 1.8.5. I saw that has enabled cloudfront for user avatars. How can I enable that in my version?

Any link to git hub commit that I can pull to get this feature will be appreciated.


(Régis Hanol) #2

Add the following line in your app.yml file under the env section

DISCOURSE_CDN_URL: https://your.cdn

(Jeff Atwood) #3

This is correct, but that line might already be there as a commented out line. So edit out the comment characters, etc.

(Satyanarayan Patel) #4

What will happen to existing avatars? will they be uploaded to CDN path. Turning this on will change url to something like <CDN>/user_avatar/<host>/<username>/size/upload_id_version.png"
How do avatars will be uploaded at CDN path?