By default, self-hosted AFFiNE uses file system(fs) to storage user uploaded or AI generated blobs. The storage directory would be UPLOAD_LOCATION you specified by environment variables.
As you might want to use a cloud-base object storage to store all the blobs, we provide the out-of-box support of aws s3 compatible storage or cloudflare r2 storage.
go /admin -> Settings -> Storage to configure it.
Select aws-s3 in provider dropdown and update the bucket and sdk config accordingly.
The config body should be valid JSON object.
Select cloudflare-r2 in provider dropdown and update the bucket and sdk config accordingly.
The config body should be valid JSON object.