# Activer un CDN pour votre Discourse

**URL:** https://meta.discourse.org/t/enable-a-cdn-for-your-discourse/14857
**Category:** Self-Hosting
**Tags:** cdn, configuring, how-to
**Created:** [Avril 18, 2014, 7:51 UTC](https://meta.discourse.org/t/enable-a-cdn-for-your-discourse/14857 "2014-04-18T07:51:41Z")
**Posts on this page:** 1
**Showing post:** 95

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [Juillet 26, 2022, 9:30 UTC](https://meta.discourse.org/t/enable-a-cdn-for-your-discourse/14857/95 "2022-07-26T09:30:36Z")

</div>

> [@Discourse](#):
>
> ⚠ CloudFlare CDN et Discourse n’ont pas toujours bien fonctionné ensemble, nous ne recommandons donc pas d’utiliser CloudFlare CDN pour le moment.

Est-ce toujours le cas aujourd’hui ?

Depuis 2019 :

> [@S3 image bandwidth costs are getting annoying](https://meta.discourse.org/t/s3-image-bandwidth-costs-are-getting-annoying/122052/4?u=canapin):
>
> I’m using Cloudflare on [my Discourse site](https://blenderartists.org) and it works fine. You basically route all your traffic through Cloudflare and tell it what to process or cache and that’s it. There are a few things to keep in mind though: Configure Cloudflare to NOT cache anything (set up exceptions using page rules, see below). Don’t let Cloudflare touch your Javascript - specifically, turn off Rocket Loader. I’m not sure about Brotli compression yet, I disabled it. Set up page rules to cache the avatar and upload …

Il semble que nous devions être très prudents et que nous perdions certains des avantages de Cloudflare.

Depuis 2020 :

> [@I can't login to admin after backup due to Cloudflare](https://meta.discourse.org/t/i-cant-login-to-admin-after-backup-due-to-cloudflare/162996/9?u=canapin):
>
> Cloudflare isn’t broken, your implementation was. Let’s Encrypt won’t enroll a certificate while CloudFlare is proxying. It prevents the verification from going through. You can’t use any of their ‘performance’ features with Discourse as it alters the already-minified code. All CloudFlare can do for you is hide your IP and act as a CDN for your uploads. The benefits are minimal.

Depuis 2021 :

> [@S3 image bandwidth costs are getting annoying](https://meta.discourse.org/t/s3-image-bandwidth-costs-are-getting-annoying/122052/23?u=canapin):
>
> Cloudflare is fine - just disable their Rocket Loader feature. With no configuration effort, it saves half the bandwidth back to my server. It might be that years ago Cloudflare didn’t work well with Discourse, but it’s not true today. It would be nice if we didn’t keep seeing doubt about it. If anyone has a specific problem, they should start a support thread here describing what’s not working.

Alors, Cloudflare est-il fiable et efficace avec Discourse aujourd’hui ? Désactiver la fonctionnalité “Rocket Loader” minimise-t-il les avantages ?

Je pensais passer de Stackpath à Bunny CDN, mais le propriétaire de mon domaine de forum et ancien administrateur possède un compte Cloudflare entreprise (il est le propriétaire de tinyURL d’ailleurs) sur lequel il pourrait ajouter le domaine gratuitement ([Looking for a decrease in the forum fees in the future - #6 by Gilby - Forum Feedback - Unicyclist.com](https://unicyclist.com/t/looking-for-a-decrease-in-the-forum-fees-in-the-future/274858/6)).

Alors, je me demande s’il est juste, sans douleur et efficace d’utiliser Cloudflare à la place de Bunny CDN.

---

_[View the full topic](https://meta.discourse.org/t/enable-a-cdn-for-your-discourse/14857)._
