Skip to content

Commit

Permalink
Merge 17c6515 into 15c3615
Browse files Browse the repository at this point in the history
  • Loading branch information
rijnhard committed Nov 6, 2018
2 parents 15c3615 + 17c6515 commit 368b267
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/providers/azure.md
Expand Up @@ -142,6 +142,7 @@ client.createServer(options, function (err, server) {
* `protocol`: specifies the transport protocol for the endpoint.

* `rdp.port`: (Optional. Windows servers only). The port to use for RDP on Windows servers.
* `emulator`: (Optional) enables support for the Azure emulator [Azure Storage Emulator settings](https://docs.microsoft.com/en-gb/azure/storage/common/storage-use-emulator#addressing-resources-in-the-storage-emulator), you still need to configure the credentials to what is expected by the emulator, e.g. account `devstoreaccount1`.

<br/>
<a name="azure-manage-cert"></a>
Expand Down
5 changes: 4 additions & 1 deletion lib/pkgcloud/azure/storage/client/index.js
Expand Up @@ -57,7 +57,10 @@ Client.prototype._getUrl = function (options) {
fragment = urlJoin(fragment, options.path);
}

if (this.config.emulator) {
return urlJoin(this.protocol + this.serversUrl, this.azureKeys.storageAccount, fragment);
}

return urlJoin('http://' + this.azureKeys.storageAccount + '.' + this.serversUrl + '/',
return urlJoin(this.protocol + this.azureKeys.storageAccount + '.' + this.serversUrl + '/',
fragment);
};

0 comments on commit 368b267

Please sign in to comment.