跳到主内容

Storage providers

A storage provider decides where Casdoor stores uploaded files, such as the avatars of users. Add a storage provider and then add it to your application.

Storage types​

TypeWhere files are stored
Local File SystemOn the file system of the Casdoor server. See Local file system
AWS S3In Amazon S3. See Amazon S3
Azure BlobIn Azure Blob Storage. See Azure Blob
Google Cloud StorageIn Google Cloud Storage. See Google Cloud Storage
Aliyun OSSIn Alibaba Cloud OSS. See Alibaba Cloud OSS
Tencent Cloud COSIn Tencent Cloud COS. See Tencent Cloud COS
MinIOIn MinIO or another S3-compatible store. See MinIO
SynologyOn a Synology NAS. See Synology NAS
Qiniu Cloud KodoIn Qiniu Cloud Kodo
CasdoorIn another Casdoor instance

Common fields​

字段描述
客户端ID云存储提供商给的标识。
客户端密钥与存储服务共享的密钥。
端点存储服务的公网地址 / 域名。
地域节点 (内网)同机房访问用的内网地址。
路径前缀对象键的前缀(默认 /)。前缀为 abcd/xxxx 时,文件存放在例如 https://cdn.example.com/abcd/xxxx/casdoor/avatar.png。
存储桶存储桶 / 容器名称。
域名用于提供文件的自定义 CDN 域名。
地域ID数据中心地域(云提供商)。

See also​