imgproxy can process images from Azure Blob Storage containers. To use this feature, do the following:
IMGPROXY_USE_ABS
environment variable to true
IMGPROXY_ABS_NAME
to your Azure account name and IMGPROXY_ABS_KEY
to your Azure account keyIMGPROXY_ABS_ENDPOINT
abs://%bucket_name/%file_key
as the source image URLMicrosoft encourages the use of a Managed Identity or Service Principal when accessing resources on an Azure Storage Account. Both of these authentication pathways are supported out-of-the box.
There is no additional configuration required so long as the resource that imgproxy is running on has a Managed Identity assigned to it.
Please refer to the following documentation on creation of a service principal before proceeding.
Once that step is completed, the following environment variables must be configured depending on which option was chosen.
AZURE_CLIENT_ID
: Specifies the client ID for your application registrationAZURE_TENANT_ID
: Specifies the tenant ID for your application registrationAZURE_CLIENT_SECRET
: Specifies the client secret for your application registration.AZURE_CLIENT_ID
: Specifies the client ID for your application registrationAZURE_TENANT_ID
: Specifies the tenant ID for your application registrationAZURE_CLIENT_CERTIFICATE_PATH
: Specifies the path to a PFX or PEM-encoded certificate including private keyAZURE_CLIENT_CERTIFICATE_PASSWORD
: (optional) the password protecting the certificate file (PFX (PKCS12))AZURE_CLIENT_CERTIFICATE_CHAIN
: (optional) send certificate chain in x5c header to support subject name / issuer-based authentication