Skip to content

Commit 24af0ba

Browse files
author
Bryan Kendall
committed
adding https logic to hipache host
1 parent afb9754 commit 24af0ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/models/redis/hosts.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Hosts.prototype.upsertHostForContainerPort =
9898
var actualPort = container.ports[containerPort][0].HostPort;
9999
var parsedDockerHost = url.parse(container.dockerHost);
100100
var backendUrl = url.format({
101-
protocol: 'http:',
101+
protocol: (containerPort.toString() === '443') ? 'https:' : 'http:',
102102
slashes: true,
103103
hostname: parsedDockerHost.hostname,
104104
port: actualPort
@@ -207,4 +207,4 @@ Hosts.prototype.readHipacheEntriesForContainer =
207207
container: container,
208208
cb: cb
209209
};
210-
}
210+
}

0 commit comments

Comments
 (0)