Browse Source

Add CloudFlare R2 example documentation

pull/22962/head
enisn 1 year ago
parent
commit
898a3134bb
No known key found for this signature in database GPG Key ID: A052619F04155D1C
  1. 10
      docs/en/framework/infrastructure/blob-storing/aws.md

10
docs/en/framework/infrastructure/blob-storing/aws.md

@ -116,7 +116,7 @@ Configure<AbpBlobStoringOptions>(options =>
}); });
```` ````
### Wasabi Configuration ### Cloudflare R2 Configuration
````csharp ````csharp
Configure<AbpBlobStoringOptions>(options => Configure<AbpBlobStoringOptions>(options =>
@ -125,10 +125,10 @@ Configure<AbpBlobStoringOptions>(options =>
{ {
container.UseAws(aws => container.UseAws(aws =>
{ {
aws.AccessKeyId = "your-wasabi-access-key"; aws.AccessKeyId = "your-r2-access-key";
aws.SecretAccessKey = "your-wasabi-secret-key"; aws.SecretAccessKey = "your-r2-secret-key";
aws.ServiceURL = "https://s3.us-east-1.wasabisys.com"; aws.ServiceURL = "https://your-account-id.r2.cloudflarestorage.com";
aws.Region = "us-east-1"; aws.Region = "auto"; // Cloudflare R2 uses 'auto' as region
aws.ContainerName = "my-bucket"; aws.ContainerName = "my-bucket";
aws.CreateContainerIfNotExists = true; aws.CreateContainerIfNotExists = true;
}); });

Loading…
Cancel
Save