This commit is contained in:
Mateusz Gruszczyński committed 2026-11-19 16:23:30 +01:00
1 parent 38a23e2210
commit 45b1fc04c7
36 files changed
+9594 -7892

No files matched your search

+4 -1
View File
@@ -536,7 +536,10 @@ function load(value = defaults(), migrationIds = [], show = true) {
note(unsafeCacheFields, "vhCacheForceHelp");
const cacheRulesFields = el("div", undefined, "vh-wide vh-cache-rules"); cacheOptions.append(cacheRulesFields);
cacheRulesFields.append(el("h4", t("vhCacheRulesTitle")), el("p", t("vhCacheRulesHelp"), "fine"));
vhostCacheRulesEditor = window.rustProxyCacheRules.create({ scope: "vhost", vhostId: editing || "", rules: cache.rules || [], ignoreGlobal: cache.ignore_global_rules === true });
vhostCacheRulesEditor = window.rustProxyCacheRules.create({
scope: "vhost", vhostId: editing || "", rules: cache.rules || [], ignoreGlobal: cache.ignore_global_rules === true,
testHost: () => lines(read("hosts")?.value || "").find(host => host && !host.startsWith("*.")) || "",
});
cacheRulesFields.append(vhostCacheRulesEditor.node);
if (editing) cacheOptions.append(button("vhPurgeCache", () => purge(editing)));
const syncCacheVisibility = () => {