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.