# CDNがオリジンからのアセットにアクセスできません

**URL:** <https://meta.discourse.org/t/cdn-unable-to-access-assets-from-origin/72560>\
**Category:** Product Support\
**Created:** [2017 年 10 月 22 日午前 10:58 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:** 4

<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:** [2017 年 10 月 23 日午前 4:22 UTC](https://meta.discourse.org/t/cdn-unable-to-access-assets-from-origin/72560/4 "2017-10-23T04:22:22Z")

</div>

> [@disc](#):
>
> 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?

It has to run every time after assets:precompile

> [@disc](#):
>
> Also what happens if both DISCOURSE\_CDN\_URL and DISCOURSE\_S3\_CDN\_URL are configured via env?

That is supported, just use different CDNs for both URLs, some paths have to hit the app still for the origin.

---

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