We’ve moved the objects (such as image, and others) to AWS S3. Those have been great.
Now we want to speed up the site a bit more. How should I add the AWS cloudfront as the DISCOURSE_CDN?
I tried to setup myself. It works when I am using the forum-cdn. But as soon as I put the url into the discourse_cdn, the site becomes unusable and all images are having multiple redirects and stopped working.
Lilly
November 24, 2024, 11:08pm
2
Did you have a look through the documentation here:
So you’d like to use a CDN to speed up worldwide access to common assets on your Discourse forum? You might want to go all-in and Set up file and image uploads to S3 (see also Configure an S3 compatible object storage provider for uploads ).
If you want a CDN without the added complexity of S3 and having two CDNs, this is the guide for you. The CDN will reduce some load on your server by letting the CDN serve those assets so that the server doesn’t have to. It also can speed things up by deliver…
also
Hello All. I recently got my Discourse installation setup using AWS CloudFront (CF) for full site acceleration - and SSL offloading using AWS certs in CF. Note that this installation deviates from the official guide regarding CDN and SSL configuration - so that might be controversial and lead to future supportability issues. So be forewarned… there be dragons here. I am sharing the configuration that worked for me here:
Setup discourse to listen on port 80 only and disable Let’s Encrypt by co…
Yap! I used this one as the way to setup.
So you’d like to use a CDN to speed up worldwide access to common assets on your Discourse forum? You might want to go all-in and Set up file and image uploads to S3 (see also Configure an S3 compatible object storage provider for uploads ).
If you want a CDN without the added complexity of S3 and having two CDNs, this is the guide for you. The CDN will reduce some load on your server by letting the CDN serve those assets so that the server doesn’t have to. It also can speed things up by deliver…
But the second post contains which i am not sure if it is the official setup. And the post was from 2021.
Do not configure “DISCOURSE_CDN_URL”
Lilly
November 24, 2024, 11:17pm
4
Everything you need should be here, starting with this topic
This topic covers how to configure some common S3 compatible Object Storage providers (S3 clones). See Set up file and image uploads to S3 for more details about Amazon AWS S3 configuration, which is officially supported and used internally by Discourse for our hosting services.
Provider
Service Name
Works with Discourse?
Amazon AWS
S3
Yes
Digital Ocean
Spaces
Yes
Linode
Object Storage
Yes
Google Cloud
Storage
Yes
Scaleway
Object Storage
Yes
Vultr
Obj…
I’ve already done this. The image of our site is on AWS S3 with cloudfront. I am trying to cache more such as the user_avatar image instead of hitting the server.
2 Likes