# Hey everyone, I've set up S3 for Discourse, but why are topic browsing images using COS links?

**URL:** <https://meta.discourse.org/t/discourse-s3-cos/417219>\
**Category:** Self-hosting\
**Tags:** s3\
**Created:** [12 november 2026 om 14:54 UTC](https://meta.discourse.org/t/discourse-s3-cos/417219 "2026-11-12T14:54:22Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Adam\_Root](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@Adam\_Root](https://meta.discourse.org/u/Adam_Root)\
**Post date:** [16 november 2026 om 10:23 UTC](https://meta.discourse.org/t/discourse-s3-cos/417219/4 "2026-11-16T10:23:40Z")

</div>

Hi,

Since your files are uploading to COS successfully and EdgeOne is serving the static assets, the S3 connection seems to be working correctly.

One thing worth checking is your `DISCOURSE_S3_BUCKET` setting. It should normally contain only the bucket name, without `/uploads/discourse` in the path. The same applies to `DISCOURSE_S3_BACKUP_BUCKET`.

Also, check the `s3_cdn_url` setting in Discourse to make sure it points to your EdgeOne domain with the correct upload path.

Keep in mind that `s3:upload_assets` handles static assets, so it won’t necessarily fix URLs used for topic thumbnails.

I’d suggest uploading a new image after verifying these settings and checking whether its thumbnail uses the EdgeOne URL or the direct COS URL.

If it still points to COS, could you share an example thumbnail URL (with sensitive details hidden)? That would help identify where the URL is coming from.

---

_[View the full topic](https://meta.discourse.org/t/discourse-s3-cos/417219)._
