From 898a3134bb969cc56f02fa0f2a17f039212d0956 Mon Sep 17 00:00:00 2001 From: enisn Date: Mon, 26 May 2025 15:27:25 +0300 Subject: [PATCH] Add CloudFlare R2 example documentation --- docs/en/framework/infrastructure/blob-storing/aws.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/en/framework/infrastructure/blob-storing/aws.md b/docs/en/framework/infrastructure/blob-storing/aws.md index 514becab5e..1475e5beb4 100644 --- a/docs/en/framework/infrastructure/blob-storing/aws.md +++ b/docs/en/framework/infrastructure/blob-storing/aws.md @@ -116,7 +116,7 @@ Configure(options => }); ```` -### Wasabi Configuration +### Cloudflare R2 Configuration ````csharp Configure(options => @@ -125,10 +125,10 @@ Configure(options => { container.UseAws(aws => { - aws.AccessKeyId = "your-wasabi-access-key"; - aws.SecretAccessKey = "your-wasabi-secret-key"; - aws.ServiceURL = "https://s3.us-east-1.wasabisys.com"; - aws.Region = "us-east-1"; + aws.AccessKeyId = "your-r2-access-key"; + aws.SecretAccessKey = "your-r2-secret-key"; + aws.ServiceURL = "https://your-account-id.r2.cloudflarestorage.com"; + aws.Region = "auto"; // Cloudflare R2 uses 'auto' as region aws.ContainerName = "my-bucket"; aws.CreateContainerIfNotExists = true; });