# CDN unable to access assets from origin

**URL:** <https://meta.discourse.org/t/cdn-unable-to-access-assets-from-origin/72560>\
**Category:** Product Support\
**Created:** [October 22, 2017, 10:58am UTC](https://meta.discourse.org/t/cdn-unable-to-access-assets-from-origin/72560 "2017-10-22T10:58:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [October 23, 2017, 12:37am UTC](https://meta.discourse.org/t/cdn-unable-to-access-assets-from-origin/72560/2 "2017-10-23T00:37:07Z")

</div>

I am not sure this is a bug. The “flipping” only happens in an AWS environment where you configure all s3 settings via ENV and then s3 acts as an origin for assets.

If you have s3 configured via env BE SURE to set DISCOURSE\_S3\_CDN\_URL and BE SURE to run `rake s3:upload_assets`, note this is a very advanced setup that I am working on now so it has to be all configured just-so.

---

_[View the full topic](https://meta.discourse.org/t/cdn-unable-to-access-assets-from-origin/72560)._
