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
| Value | Where to find it |
|---|---|
| AccountName | The name of the storage account |
| AccountKey | The storage account, Access keys |
| ContainerUrl | The properties of the container |
| ContainerName | The name of the container, for example default |
| PrivateEndpoint | Optional. Ein privater Endpunkt des Kontos |
| Domain | Optional. A custom domain, such as one of Azure CDN |




Provider in Casdoor hinzufügen
-
Gehen Sie in der Casdoor-Administratorkonsole zu Identity > Providers und fügen Sie einen Provider hinzu.
-
Setzen Sie Category auf
Storageund Type aufAzure Blob.
-
Füllen Sie die Felder aus:
Casdoor field Azure / meaning Erforderlich Client ID AccountName Ja Client secret AccountKey Ja Endpoint ContainerUrl Ja Endpoint (Intranet) PrivateEndpoint Nein Bucket ContainerName Ja Path prefix Pfadpräfix Nein Domain Custom domain (e.g. CDN) Nein -
Speichern Sie den Provider.
