File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
src/Umbraco.Cloud.StorageProviders.AzureBlob Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -19,12 +19,17 @@ public void Compose(IUmbracoBuilder builder)
19
19
builder . AddAzureBlobMediaFileSystem ( ) ;
20
20
21
21
var configuration = new ConfigurationBuilder ( )
22
- . AddJsonFile ( "umbraco-cloud.json" , true , true )
23
- . AddEnvironmentVariables ( "UMBRACO:CLOUD:" )
22
+ . AddEnvironmentVariables ( "Umbraco:Cloud:" )
24
23
. Build ( ) ;
25
24
26
25
builder . Services . Configure < AzureBlobFileSystemOptions > ( AzureBlobFileSystemOptions . MediaFileSystemName ,
27
- configuration . GetSection ( "Storage:AzureBlob" ) . Bind ) ;
26
+ options =>
27
+ {
28
+ var section = configuration . GetSection ( "Storage:AzureBlob" ) ;
29
+
30
+ options . ConnectionString = $ "BlobEndpoint={ section [ "Endpoint" ] } ;SharedAccessSignature={ section [ "SharedAccessSignature" ] } ";
31
+ options . ContainerName = section [ "ContainerName" ] ;
32
+ } ) ;
28
33
29
34
builder . Services . Configure < UmbracoPipelineOptions > ( options =>
30
35
{
You can’t perform that action at this time.
0 commit comments