Zum Hauptinhalt springen

Dateien in Azure Blob Storage speichern

Dieser Leitfaden erklärt, wie Sie die hochgeladenen Dateien von Casdoor, wie z. B. Avatare, in Azure Blob Storage speichern.


Lernziele​

  • Finden Sie die Werte Ihres Speicherkontos heraus.
  • Fügen Sie Azure Blob als Storage-Provider in Casdoor hinzu.

Voraussetzungen​

  • Ein Azure-Speicherkonto mit einem Container
  • Administratorzugriff auf die Casdoor Admin-Console

Werte in Azure finden​

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
PrivateEndpointOptional. Ein privater Endpunkt des Kontos
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

Provider in Casdoor hinzufügen​

  1. Gehen Sie in der Casdoor-Administratorkonsole zu Identity > Providers und fügen Sie einen Provider hinzu.

  2. Setzen Sie Category auf Storage und Type auf Azure Blob.

    Azure Blob type selection

  3. Füllen Sie die Felder aus:

    Casdoor fieldAzure / meaningErforderlich
    Client IDAccountNameJa
    Client secretAccountKeyJa
    EndpointContainerUrlJa
    Endpoint (Intranet)PrivateEndpointNein
    BucketContainerNameJa
    Path prefixPfadpräfixNein
    DomainCustom domain (e.g. CDN)Nein
  4. Speichern Sie den Provider.

    Azure Blob provider in Casdoor

Siehe auch​