From 2d8b4f543b9032bd9c1d9e35f03cd72281372df3 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 27 Aug 2021 22:21:16 +0200 Subject: [PATCH] providers/proxy: fix url parsing for traefik labels on docker containers Signed-off-by: Jens Langhammer --- authentik/providers/proxy/controllers/docker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/providers/proxy/controllers/docker.py b/authentik/providers/proxy/controllers/docker.py index 9c56c866f..cc1e3b541 100644 --- a/authentik/providers/proxy/controllers/docker.py +++ b/authentik/providers/proxy/controllers/docker.py @@ -22,7 +22,7 @@ class ProxyDockerController(DockerController): for proxy_provider in ProxyProvider.objects.filter(outpost__in=[self.outpost]): proxy_provider: ProxyProvider external_host_name = urlparse(proxy_provider.external_host) - hosts.append(f"`{external_host_name}`") + hosts.append(f"`{external_host_name.netloc}`") traefik_name = f"ak-outpost-{self.outpost.pk.hex}" labels = super()._get_labels() labels["traefik.enable"] = "true"