Skip to main content

Storage provider overview

Use a Storage provider when you need file storage (e.g. avatar uploads). Add the provider and attach it to your application. Casdoor supports Local (filesystem) and Cloud (object storage) types.

Provider fields​

FieldDescription
Client IDIdentifier from the cloud storage provider.
Client secretSecret shared with the storage service.
EndpointPublic URL/domain of the storage service.
Endpoint (Intranet)Internal/private URL for same-datacenter access.
Path prefixPrefix for object keys (default /). With prefix abcd/xxxx, a file is stored at e.g. https://cdn.example.com/abcd/xxxx/casdoor/avatar.png.
BucketBucket/container name.
DomainCustom CDN domain for serving files.
Region IDData center region (for cloud providers).

Local storage​

Files are stored on the server’s local filesystem.

Cloud storage​

Supported: AWS S3, Azure Blob Storage, MinIO, Alibaba Cloud OSS, Tencent Cloud COS. More providers may be added over time.