Hi everyone.
A new advice message has appeared on my Discourse admin page after a recent update to 2.7.0.beta1 ( e0c952290b )
It says:
- The server is configured to upload files to S3, but there is no S3 CDN configured. This can lead to expensive S3 costs and slower site performance. See “Using Object Storage for Uploads” to learn more.
Our Discourse does indeed use S3 for storage but it does not have a CDN in place of any shape or form.
@Falco suggested entering the S3 bucket URL in to the s3 cdn url
settings box but I’m not sure what affect that might then have elsewhere.
I’m also not fully sure what my S3 bucket URL would be
An example S3 URL to a user-uploaded image is:
https://greyarrows.s3.dualstack.eu-west-2.amazonaws.com/original/3X/2/1/21365d3a8c03c3f309dd78ca51f517973618f2a0.jpeg
Does that mean my bucket URL is:
https://greyarrows.s3.dualstack.eu-west-2.amazonaws.com/
If I do enter that URL in to the s3 cdn url
settings box and then rebake several hundred thousand posts, would their served up URL not then be:
https://greyarrows.s3.dualstack.eu-west-2.amazonaws.com/https://greyarrows.s3.dualstack.eu-west-2.amazonaws.com/original/3X/2/1/21365d3a8c03c3f309dd78ca51f517973618f2a0.jpeg
Meaning no user images would work anymore?
In an ideal world, I’d simply like to click “Ok, thanks for the heads up!” and dismiss that info/alert/advice from our admin page. However, I suspect that would actually be quite a large core change so we’ll skip that idea.
Right now, everything is working fine and has been for years. I am very reluctant and nervous of changing a setting that I don’t fully understand to the point where I’m simply going to pretend I can’t see this piece of advice every time I look at the admin panel.
I’m guessing I will still see any other future admin panel warnings, this one one prevent others from appearing, will it?
Any advice, insight or suggestions welcomed please.