# Как добавить AWS Cloudfront в качестве CDN для Discourse

**URL:** https://meta.discourse.org/t/how-to-add-aws-cloudfront-as-a-discourse-cdn/338115
**Category:** Self-hosting
**Tags:** cdn
**Created:** [24.Ноябрь.2024 22:49:52 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:** 2

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [24.Ноябрь.2024 23:08:09 UTC](https://meta.discourse.org/t/how-to-add-aws-cloudfront-as-a-discourse-cdn/338115/2 "2024-11-24T23:08:09Z")

</div>

Вы посмотрели документацию здесь:

> [@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…

а также

> [@Full Site CDN Using AWS CloudFront](https://meta.discourse.org/t/full-site-cdn-using-aws-cloudfront/208161):
>
> 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…

---

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