メインコンテンツにスキップ

ストレージプロバイダー

ストレージプロバイダーは、ユーザーのアバターなど、Casdoor がアップロードされたファイルをどこに保存するかを決定します。ストレージプロバイダーを追加し、それをアプリケーションに追加してください。

ストレージの種類​

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

共通フィールド​

フィールド説明
クライアントIDIdentifier from the cloud storage provider.
クライアントシークレットSecret shared with the storage service.
エンドポイントPublic URL/domain of the storage service.
エンドポイント(イントラネット)Internal/private URL for same-datacenter access.
パスプレフィックスPrefix for object keys (default /). With prefix abcd/xxxx, a file is stored at e.g. https://cdn.example.com/abcd/xxxx/casdoor/avatar.png.
バケットBucket/container name.
ドメインCustom CDN domain for serving files.
地域IDData center region (for cloud providers).

関連項目​

  • プロバイダー
  • 設定リファレンス: defaultStorageProvider は、アプリケーションにストレージプロバイダーが指定されていない場合に Casdoor が使用するプロバイダーを設定します。