Skip to content

Commit bf7cf7b

Browse files
the8treLudovic Engrand
andauthored
Add support for blobDomain config option (#69)
Specify custom blob domain, defaults to blob.core.windows.net Co-authored-by: Ludovic Engrand <ludovic.engrand@sap.com>
1 parent dd7fafa commit bf7cf7b

File tree

6 files changed

+188
-313
lines changed

6 files changed

+188
-313
lines changed

publish/AdapterAzureBlob/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export interface AdapterConfigAzure extends AdapterConfig {
5959
connectionString?: string;
6060
accountKey?: string;
6161
sasToken?: string;
62+
blobDomain?: string;
6263
}
6364
```
6465

@@ -80,6 +81,14 @@ const s = new Storage({
8081
bucketName: "the-buck"
8182
maxTries: 3
8283
});
84+
85+
const s = new Storage({
86+
type: StorageType.AZURE,
87+
accountName: "your-account-name",
88+
sasToken: "your-sas-token",
89+
blobDomain: "your-blob-domain", // Defaults to blob.core.windows.net
90+
bucketName: "the-buck"
91+
});
8392
```
8493

8594
Same examples with configuration url:

publish/AdapterAzureBlob/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.0.7
2+
3+
- add support for optional config option `blobDomain`
4+
15
# 1.0.6
26

37
- add support for optional key `useSignedUrl` in options object `getFileAsUrl`

0 commit comments

Comments
 (0)