# 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:** 3

<div class="post-metadata">

**Author:** ![disc](https://avatars.discourse-cdn.com/v4/letter/d/f6c823/32.png) [@disc](https://meta.discourse.org/u/disc)\
**Post date:** [October 23, 2017, 4:21am UTC](https://meta.discourse.org/t/cdn-unable-to-access-assets-from-origin/72560/3 "2017-10-23T04:21:12Z")

</div>

Thanks for replying Sam.

Does `rake s3:upload_assets` only need to be run once, or does it need to be added to app.yml, so it runs every time `./launcher rebuild app` runs?

Also what happens if both DISCOURSE\_CDN\_URL and DISCOURSE\_S3\_CDN\_URL are configured via env? I’m not sure if the later will override the former, or if they serve different purposes.

---

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