v0.34.16
This commit is contained in:
1 parent
e364392659
commit
f27fbf6a30
28 files changed
+2000
-60
No files matched your search
@@ -386,10 +386,18 @@ function render() {
|
||||
const health = el("p", t("vhHealthEmpty"), "vh-health-summary"); health.dataset.healthFor = v.id; box.append(health);
|
||||
}
|
||||
const policy = el("div", undefined, "vhost-policy-pills");
|
||||
if (v.basic_auth?.enabled) policy.append(el("small", t("authBasic"), "pill"));
|
||||
if (v.tinyauth?.enabled) policy.append(el("small", "Tinyauth", "pill"));
|
||||
if (v.authelia?.enabled) policy.append(el("small", "Authelia", "pill"));
|
||||
if (v.authentik?.enabled) policy.append(el("small", "authentik", "pill"));
|
||||
if (v.authentication?.provider) {
|
||||
const providers = { basic: "authBasic", tinyauth: "authTinyauth", authelia: "authAuthelia", authentik: "authAuthentik", pocket_id: "authPocketId", custom: "authCustomOidc" };
|
||||
const provider = providers[v.authentication.provider];
|
||||
const method = v.authentication.method;
|
||||
if (provider) policy.append(el("small", method === "basic" ? t(provider) : `${t(provider)} · ${method === "oidc" ? "OIDC" : t("authForwardAuth")}`, "pill"));
|
||||
} else {
|
||||
if (v.basic_auth?.enabled) policy.append(el("small", t("authBasic"), "pill"));
|
||||
if (v.tinyauth?.enabled) policy.append(el("small", "Tinyauth", "pill"));
|
||||
if (v.authelia?.enabled) policy.append(el("small", "Authelia", "pill"));
|
||||
if (v.authentik?.enabled) policy.append(el("small", "authentik", "pill"));
|
||||
if (v.oidc?.enabled) policy.append(el("small", "OIDC", "pill"));
|
||||
}
|
||||
if (v.rate_limit?.enabled) policy.append(el("small", t("vhRateEnabled"), "pill"));
|
||||
if (v.acl_profile_id) policy.append(el("small", `${t("vhAclProfile")}: ${v.acl_profile_id}`, "pill"));
|
||||
if (v.force_ssl) policy.append(el("small", t("vhForceSsl"), "pill"));
|
||||
|
||||
Reference in new issue
Block a user