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

Azure Blob Storage にファイルを保存する

このガイドでは、アバターなどの Casdoor のアップロードファイルを Azure Blob Storage に保存する方法について説明します。


学習目標​

  • ストレージアカウントの値を見つける方法。
  • Casdoor に Azure Blob をストレージプロバイダーとして追加する方法。

必要なもの​


Azure で値を見つける​

ValueWhere to find it
AccountNameThe name of the storage account
AccountKeyThe storage account, Access keys
ContainerUrlThe properties of the container
ContainerNameThe name of the container, for example default
PrivateEndpointオプションです。アカウントの プライベートエンドポイント
DomainOptional. A custom domain, such as one of Azure CDN

Access keys of the storage account

URL of the container

Name of the container

Azure CDN domain

Casdoor にプロバイダーを追加する​

  1. Casdoor 管理コンソールで、Identity > Providers に移動し、プロバイダーを追加します。

  2. Category を Storage に、Type を Azure Blob に設定します。

    Azure Blob type selection

  3. フィールドに入力します:

    Casdoor fieldAzure / meaning必須
    Client IDAccountNameはい
    Client secretAccountKeyはい
    EndpointContainerUrlはい
    Endpoint (Intranet)PrivateEndpointいいえ
    BucketContainerNameはい
    Path prefixパスプレフィックスいいえ
    DomainCustom domain (e.g. CDN)いいえ
  4. プロバイダーを保存します。

    Azure Blob provider in Casdoor

関連項目​