跳到主内容

Amazon S3 storage

Configure Casdoor to store files (e.g. avatars) in Amazon S3.

1. Create credentials

Create and save an access key and secret access key in the AWS console. See Managing access keys.

2. Configure the bucket

  • In the bucket Permissions, turn off “Block all public access” (or configure a policy that allows Casdoor) and save.
  • In Object Ownership, enable ACLs and set ownership as needed.

取消勾选阻止 检查ACLs已启用

3. Add the provider in Casdoor

Casdoor fieldIn AWS / S3必需
Client IDAccess keyYes
Client secretSecret access keyYes
EndpointEndpointYes
Endpoint (intranet)VPC endpointNo
BucketBucket nameYes
Path prefixNo
DomainCloudFront domainNo
Region IDAWS regionYes

Endpoint format: Website endpoints.

Amazon S3提供者

Optional

域名