Sorry, you’re right I skipped that part exactly. I added the following into my app.yml and now it is loading the forum correctly:
after_assets_precompile:
- exec:
cd: $home
cmd:
- sudo -E -u discourse bundle exec rake s3:upload_assets
- sudo -E -u discourse bundle exec rake s3:expire_missing_assets
Nonetheless, the user uploads are still not working correctly. After the upload into the S3 bucker (correctly) the image is served as:
//my-bucket-eu.my-bucket-eu/original/1X/7f242572bdb45b65ded727c13366fe490541358f.jpeg
which of course is not valid S3 or CDN path
In the guide that you refer to there is this section that seems relevant:
DISCOURSE_CDN_URL is a CDN that points to you Discourse hostname and caches requests. It will be used mainly for pullable assets: CSS and other theme assets.
DISCOURSE_S3_CDN_URL is a CDN that points to your object storage bucket and caches requests. It will be mainly used for pushable assets: JS, images and user uploads.
We recommend those being different and for admins to set both.
However, I’m not sure what to set as DISCOURSE_CDN_URL ? Should I set it to the same value as the DISCOURSE_S3_CDN_URL: https://dsxxxxx2qn.cloudfront.net or have a separate CDN instance created?
Then again maybe it’s something totally different ![]()
Thank you so much for all the help!