Object Storage Service
The cool thing about Note Cargo is that all data is stored in S3/R2, so it's highly portable. You can use popular cloud-based object storage services or self-host by yourself.
Service Recommendation
- Cloudflare R2: The free plan offers 10 GB storage, beyond that $0.015/GB/mo.
- Amazon S3: The free tier offers 12 month of 5 GB storage, beyond that $0.023/GB/mo.
⚠️ Currently only tested on Cloudflare R2, but it should work with any service that follows the S3 specification.
Configuration
ACL (Access Control)
You must make the bucket fully private.
CORS (Cross-Origin Resource Sharing)
You need to add CORS to be able to download/upload the media file. For Cloudflare R2 you can add this configuration on Click the Bucket > Setting > CORS Policy
:
[
{
"AllowedOrigins": [
"https://example.com",
],
"AllowedMethods": [
"GET",
"PUT",
"POST",
"HEAD"
],
"AllowedHeaders": [
"*"
]
}
]