mirror of https://github.com/portainer/portainer
fix ingress published url (#7113)
parent
882051cc30
commit
81f8b88541
|
@ -95,8 +95,7 @@ angular.module('portainer.docker').controller('KubernetesApplicationsDatatableCo
|
||||||
.filter(({ Host, IP }) => Host || IP)
|
.filter(({ Host, IP }) => Host || IP)
|
||||||
.map(({ Host, IP, Port, Path }) => {
|
.map(({ Host, IP, Port, Path }) => {
|
||||||
let scheme = Port === 443 ? 'https' : 'http';
|
let scheme = Port === 443 ? 'https' : 'http';
|
||||||
let urlPort = Port === 80 || Port === 443 ? '' : `:${Port}`;
|
return `${scheme}://${Host || IP}${Path}`;
|
||||||
return `${scheme}://${Host || IP}${urlPort}${Path}`;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Map all load balancer service ports to ip address
|
// Map all load balancer service ports to ip address
|
||||||
|
|
Loading…
Reference in New Issue