So I have an Amazon S3 bucket set up to store my forum assets, and I put it on a custom domain and set up CloudFlare CDN to cache the content.
My custom domain is called something like http://forum-storage.com, which points to https://forum-storage.com.s3-us-east-1.amazonaws.com. The S3 bucket itself is named
This is all working correctly. If I add an image to the main folder of the bucket, I can retrieve it on my custom url, i.e. http://forum-storage.com/test.jpg returns the image, with the CloudFlare headers.
Three easy questions…
Now I need to tell Discourse to use this new URL as my S3 bucket. What do I put in these 3 fields?
I currently have images in my forum posts that are on another S3 bucket, and I also have images that are stored locally. (My image URLs are all over the place.)
Once I make the right changes (above), that means all NEW media added to my forum will go into the new bucket, but existing images will not be moved, and will continue to be accessed wherever they live now, correct?
Now that this is working for all images going forward from this point, how can I tell Discourse to MOVE all the old images that aren’t in this new bucket, into the new bucket (and rebake posts as needed)?
The goal is to get everything into one bucket, this new one behind the CDN.