From bc3e6b3962db335beac2d2a6f6719acfc516df2f Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 26 Mar 2022 19:18:52 +0100 Subject: [PATCH] web/admin: fix missing protocols on generated nginx config closes #2585 Signed-off-by: Jens Langhammer --- web/src/pages/providers/proxy/ProxyProviderViewPage.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/web/src/pages/providers/proxy/ProxyProviderViewPage.ts b/web/src/pages/providers/proxy/ProxyProviderViewPage.ts index a76022ea9..cf10e0b6b 100644 --- a/web/src/pages/providers/proxy/ProxyProviderViewPage.ts +++ b/web/src/pages/providers/proxy/ProxyProviderViewPage.ts @@ -97,14 +97,15 @@ export class ProxyProviderViewPage extends LitElement { if (this.provider?.mode === ProxyMode.ForwardSingle) { markdown.html = markdown.html .replaceAll("authentik.company", window.location.hostname) - .replaceAll("http://outpost.company:9000", window.location.hostname) + .replaceAll("outpost.company:9000", window.location.hostname) .replaceAll("https://app.company", extHost.toString()) .replaceAll("app.company", extHost.hostname); } else if (this.provider?.mode == ProxyMode.ForwardDomain) { markdown.html = markdown.html .replaceAll("authentik.company", window.location.hostname) - .replaceAll("https://app.company", extHost.hostname) - .replaceAll("http://outpost.company:9000", extHost.toString()); + .replaceAll("outpost.company:9000", extHost.toString()) + .replaceAll("https://app.company", extHost.toString()) + .replaceAll("app.company", extHost.hostname); } return markdown; }