I can download backups, I’ve never had any problems with this.
With S3 uploads included?
Thanks very use full, just when I upload in copy the image from clipboard is not working, do you face this problem?, in the end was uploaded to R2 but not visible in post:
Did you look at the image URL, what does it look like?
So we still can’t configure r2 through app. yml?Only through website setting,that is DB_S3_CONFIG?
Use this method,can you upload the old local uploads to R2, via rake uploads : migrate to s3 ?
Hey, thank you all for this.
If I understand this correctly, “DISCOURSE_CDN_URL” can be the same as “DISCOURSE_S3_CDN_URL”, which is the custom public domain linked to the bucket on Cloudflare? Or is some other configuration needed for this?
Yes, you must add the same domain name to the discourse container.yml. Here is an example of usage:
## The HTTP or HTTPS CDN address for this Discourse instance (configured to pull)
## See https://meta.discourse.org/t/14857 for details
#DISCOURSE_CDN_URL: https://discourse-cdn.example.com
#DISCOURSE_USE_S3: true
DISCOURSE_S3_REGION: 'auto'
DISCOURSE_S3_ENDPOINT: 'https://45dv544v56x****************************564564.eu.r2.cloudflarestorage.com'
DISCOURSE_S3_ACCESS_KEY_ID: '564dfds4f54sdfs********65564545'
DISCOURSE_S3_SECRET_ACCESS_KEY: 'sddfsdf564564**********6545sd4f54sd56f4s6d5'
DISCOURSE_S3_CDN_URL: 'https://cdn.discourse.com.br'
##DISCOURSE_CDN_URL: 'https://cdn.discourse.com.br'
#DISCOURSE_S3_BUCKET: 'cloudflarebucketname'
#DISCOURSE_S3_BACKUP_BUCKET: 'cloudflarebackupbucketname/backups'
#DISCOURSE_BACKUP_LOCATION: 's3'
DISCOURSE_INCLUDE_S3_UPLOADS_IN_BACKUPS: true
DISCOURSE_S3_INSTALL_CORS_RULE: false
The settings disabled with this character should be configured via the admin panel; examples are provided in the code. If you prefer, you can also enable these settings within the configuration section, it is up to you.