deprecate deadhosts, move it to the GUI as a custom response feature

This commit is contained in:
fuomag9
2026-02-07 00:51:48 +01:00
parent 8b7982059a
commit 6d56cf2288
17 changed files with 1403 additions and 497 deletions

View File

@@ -82,12 +82,18 @@ export default function ProxyHostsClient({ hosts, certificates, accessLists, aut
},
{
id: "upstreams",
label: "Upstreams",
label: "Target",
render: (host: ProxyHost) => (
<Typography variant="body2" color="text.secondary" sx={{ fontFamily: 'monospace' }}>
{host.upstreams[0]}
{host.upstreams.length > 1 && ` +${host.upstreams.length - 1} more`}
</Typography>
host.response_mode === "static" ? (
<Typography variant="body2" color="warning.main" sx={{ fontStyle: 'italic' }}>
Static Response ({host.static_status_code ?? 503})
</Typography>
) : (
<Typography variant="body2" color="text.secondary" sx={{ fontFamily: 'monospace' }}>
{host.upstreams[0]}
{host.upstreams.length > 1 && ` +${host.upstreams.length - 1} more`}
</Typography>
)
)
},
{