# How to add AWS Cloudfront as a Discourse CDN

**URL:** https://meta.discourse.org/t/how-to-add-aws-cloudfront-as-a-discourse-cdn/338115
**Category:** Self-hosting
**Tags:** cdn
**Created:** [November 24, 2024, 10:49pm UTC](https://meta.discourse.org/t/how-to-add-aws-cloudfront-as-a-discourse-cdn/338115 "2024-11-24T22:49:52Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![jimmy0017](https://avatars.discourse-cdn.com/v4/letter/j/76d3ee/32.png) [@jimmy0017](https://meta.discourse.org/u/jimmy0017)
#### Post date: [November 24, 2024, 11:13pm UTC](https://meta.discourse.org/t/how-to-add-aws-cloudfront-as-a-discourse-cdn/338115/3 "2024-11-24T23:13:58Z")

</div>

Yap! I used this one as the way to setup.

> [@Enable a CDN for your Discourse](https://meta.discourse.org/t/enable-a-cdn-for-your-discourse/14857):
>
> 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](https://meta.discourse.org/t/setting-up-file-and-image-uploads-to-s3/7229) (see also [Configure an S3 compatible object storage provider for uploads](https://meta.discourse.org/t/configure-an-s3-compatible-object-storage-provider-for-uploads/148916)). 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.

```plaintext
Do not configure “DISCOURSE_CDN_URL”

```

---

_[View the full topic](https://meta.discourse.org/t/how-to-add-aws-cloudfront-as-a-discourse-cdn/338115)._
