summaryrefslogtreecommitdiff
path: root/lib/object_storage/direct_upload.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/object_storage/direct_upload.rb')
-rw-r--r--lib/object_storage/direct_upload.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/object_storage/direct_upload.rb b/lib/object_storage/direct_upload.rb
index 90199114f2c..b5864382299 100644
--- a/lib/object_storage/direct_upload.rb
+++ b/lib/object_storage/direct_upload.rb
@@ -99,12 +99,18 @@ module ObjectStorage
ObjectStorage: {
Provider: 'AzureRM',
GoCloudConfig: {
- URL: "azblob://#{bucket_name}"
+ URL: azure_gocloud_url
}
}
}
end
+ def azure_gocloud_url
+ url = "azblob://#{bucket_name}"
+ url += "?domain=#{config.azure_storage_domain}" if config.azure_storage_domain.present?
+ url
+ end
+
def use_workhorse_s3_client?
return false unless Feature.enabled?(:use_workhorse_s3_client, default_enabled: true)
return false unless config.use_iam_profile? || config.consolidated_settings?