Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
@shawnthetechie As far as I can tell, no one has written an Azure Blob Storage storage implementation yet.
If you would like to take a stab at it, "Creating a New Storage" as an attempt of a comprehensive guide for anyone who wants to write a new storage. ActiveStorage's
gem "shrine-fog" gem "fog-azure-rm"
require "shrine/storage/fog" require "fog/azurerm" Shrine.storages[:store] = Shrine::Storage::Fog.new( provider: "AzureRM", # credentials )
Alternatively, I found out that Minio has a feature where it can act as a proxy to Azure Blob Storage while retaining the S3 API. This means that you should be already be able to use Azure Blob API with Shrine, by starting a Minio server as an Azure gateway and configuring
Shrine::Storage::S3.new( endpoint: "http://127.0.0.1:9000", access_key_id: "azureaccountname", secret_access_key: "azureaccountkey", bucket: "bucket-name", # name of the bucket you created through Minio's web interface region: "us-east-1", force_path_style: true, )