# The s3 cdn url setting makes no effect

**URL:** <https://meta.discourse.org/t/the-s3-cdn-url-setting-makes-no-effect/245078>\
**Category:** Self-hosting\
**Tags:** s3\
**Created:** [November 10, 2022, 3:40am UTC](https://meta.discourse.org/t/the-s3-cdn-url-setting-makes-no-effect/245078 "2022-11-10T03:40:47Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![shaoyaoqian](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shaoyaoqian/32/281252_2.png) [@shaoyaoqian](https://meta.discourse.org/u/shaoyaoqian)\
**Post date:** [November 10, 2022, 3:40am UTC](https://meta.discourse.org/t/the-s3-cdn-url-setting-makes-no-effect/245078/1 "2022-11-10T03:40:47Z")

</div>

Hi everyone!

The s3 cdn url setting works well for photos but it makes no effect for other kinds of files. It appears that the s3 cdn url was replaced by the endpoint url for uploaded files.

for example, my s3 cdn url is `http://qiniu.pengfeima.cn`, my s3 endpoint url is `http://qiniu-s3.s3-ap-southeast-1.qiniucs.com`. When I click the short url on discourse, it links to  
`http://qiniu-s3.s3-ap-southeast-1.qiniucs.com/original/2X/e/effbf521dc7f117e7d9b57ed41b2cac576bf39d5.txt`, but the correct url should use cdn url rather than endpoint url.

How can I solve this problem?

> PS  
> On my site, S3 parameters were set on the panels, not in the app.yml.

---

_[View the full topic](https://meta.discourse.org/t/the-s3-cdn-url-setting-makes-no-effect/245078)._
