I ended up fixing this by providing a second Cloudfront distribution that points to the web server, and keep the other one just for S3. Thank you @Falco for the feedback, but I agree this needs to be documented a bit better.
eatcodetravel
(Orlando Del Aguila)
19
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Defining DISCOURSE_S3_CDN_URL links to assets in S3 CDN URL | 42 | 7735 | April 22, 2020 | |
| Rake uploads:migrate_to_s3 fails because DISCOURSE_S3_CDN_URL env var is empty | 1 | 792 | September 27, 2019 | |
| Unable to setup S3 bucket | 11 | 794 | January 12, 2025 | |
| Issues with AWS CDN and S3 | 22 | 1449 | December 30, 2025 | |
| Enable a CDN for your Discourse | 72 | 296031 | October 4, 2025 |