Find the Persistent Storage Configuration in the Helm Chart Values

Display Helm Chart Values

helm show values dify/dify

This is an example of the persistent storage configuration in the Helm chart values.

persistence:
  type: "s3"
  s3:
    endpoint: "https://xxx.r2.cloudflarestorage.com"
    accessKey: "#REPLACE_ME#"
    secretKey: "#REPLACE_ME#"
    region: "us-east-1"
    bucketName: "your-bucket-name"
    addressType: ""
    useAwsManagedIam: false
  ... ...

The options for the persistence.type field

  • s3
  • azure-blob
  • aliyun-oss
  • google-storage
  • tencent-cos

How to configure the Amazon S3 storage using IAM roles

If you want to use the AWS IAM roles to access the S3 bucket, you can set the useAwsManagedIam field to true in the Helm chart values. The region and bucketName fields are required.

persistence:
  type: "s3"
  s3:
    endpoint: "https://s3.xxxxx.amazonaws.com"
    region: "us-east-1"
    bucketName: "your-bucket-name"
    useAwsManagedIam: true