Hey everyone, I’ve finished setting up S3 for Discourse. Why are the topic thumbnail images still going through the COS link? I’m using Tencent Cloud COS connected to EdgeOne.
I rebuilt directly, and the CSS, JS, and images were all successfully uploaded to COS. The resources are also being accessed and cached via the domain bound to EdgeOne.
However, when I check the admin backend, the topic thumbnails are still using the COS link. What could be the reason? Does anyone know how to solve this?
You’re saying that the links are for the bucket rather than the CDN? Did you have the bucket configured before the CDN? You may need to rebake those posts. You can try in the UX by clicking the wrench and “rebuild html”. If that fixes it, then you need to rebake all posts with images.
Hi, I configured these settings during installation since this is a new site. Currently, it’s only this area that isn’t displaying; everything else works fine.
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.