HTTP support of insight

- Added a check for https support.
This commit is contained in:
Chris Kleeschulte 2015-10-07 17:52:26 -04:00
parent e0d51bcb78
commit 92a977d6d9
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ Service.prototype._getConfiguration = function() {
var providerOptions = {
provider: 'insight',
url: 'http://localhost:' + self.node.port,
url: (self.node.https ? 'https://' : 'http://') + 'localhost:' + self.node.port,
apiPrefix: '/insight-api'
};