Files
RustProxy/src/admin/web/vhosts/source.js
T
2026-11-28 17:36:53 +01:00

12 lines
368 B
JavaScript

"use strict";
function locationRequiresProxy(route) {
return route.enabled !== false
&& !route.response
&& !route.redirect
&& (route.source?.type || "reverse_proxy") === "reverse_proxy";
}
function vhostRequiresProxy(vhost) {
return (vhost.source?.type || "reverse_proxy") === "reverse_proxy"
|| (vhost.routes || []).some(locationRequiresProxy);
}