Перейти до основного вмісту

Зберігайте файли в Azure Blob Storage

У цьому посібнику пояснюється, як зберігати завантажені файли Casdoor, такі як аватари, в Azure Blob Storage.


Результати навчання​

  • Знайдіть значення вашого облікового запису сховища.
  • Додайте Azure Blob як постачальника сховища в Casdoor.

Що вам потрібно​

  • Обліковий запис Azure storage account із контейнером
  • Адміністративний доступ до консолі адміністрування Casdoor

Пошук значень в 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Необов'язково. Private endpoint облікового запису
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

Див. також​