web/admin: fix missing protocols on generated nginx config

closes #2585

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-03-26 19:18:52 +01:00
parent 7cbd5174f0
commit bc3e6b3962
1 changed files with 4 additions and 3 deletions

View File

@ -97,14 +97,15 @@ export class ProxyProviderViewPage extends LitElement {
if (this.provider?.mode === ProxyMode.ForwardSingle) { if (this.provider?.mode === ProxyMode.ForwardSingle) {
markdown.html = markdown.html markdown.html = markdown.html
.replaceAll("authentik.company", window.location.hostname) .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("https://app.company", extHost.toString())
.replaceAll("app.company", extHost.hostname); .replaceAll("app.company", extHost.hostname);
} else if (this.provider?.mode == ProxyMode.ForwardDomain) { } else if (this.provider?.mode == ProxyMode.ForwardDomain) {
markdown.html = markdown.html markdown.html = markdown.html
.replaceAll("authentik.company", window.location.hostname) .replaceAll("authentik.company", window.location.hostname)
.replaceAll("https://app.company", extHost.hostname) .replaceAll("outpost.company:9000", extHost.toString())
.replaceAll("http://outpost.company:9000", extHost.toString()); .replaceAll("https://app.company", extHost.toString())
.replaceAll("app.company", extHost.hostname);
} }
return markdown; return markdown;
} }