Files
Yi-111-a 73ba0cc4bd fix(ui): let the Service Logs sidebar link honor a custom URL
#991 added custom_url overrides for app launch links, but the Settings
sidebar's "Service Logs & Metrics" entry still built its href from just a
port: getServiceLink('9999') in SettingsLayout.tsx.

Dozzle is a management-compose container (nomad_dozzle), not a `services`
row, so that override has nothing to attach to and the link always
resolved to http://<current-host>:9999. For anyone reaching NOMAD through
a reverse proxy or a local DNS name — the exact audience #991 served — the
logs link is broken with no workaround in the UI.

Add a KV-backed ui.serviceLogsUrl override, editable under Advanced >
Reverse Proxy, and route the sidebar entry through getServiceLink's
existing customUrl argument. With nothing set the link is unchanged.

Validation accepts a full http(s) URL or a bare host (normalizeCustomUrl
prepends http://), treats empty as "clear", and refuses a declared
non-http(s) scheme so an input like file:///etc/passwd is rejected at the
boundary instead of being silently reinterpreted as a hostname.
2026-11-17 22:18:31 +00:00
..
2026-06-23 04:46:45 +00:00