From ed41ac326d8853f2672a5975a0c4e46816cf1d60 Mon Sep 17 00:00:00 2001 From: CyberMind-FR Date: Sun, 25 Jan 2026 15:32:36 +0100 Subject: [PATCH] fix(portal): Use http:// for local service URLs Services in LXC/Docker containers don't have SSL certificates, so always use http:// instead of inheriting the browser's protocol. Co-Authored-By: Claude Opus 4.5 --- .../htdocs/luci-static/resources/view/secubox-portal/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/secubox/luci-app-secubox-portal/htdocs/luci-static/resources/view/secubox-portal/index.js b/package/secubox/luci-app-secubox-portal/htdocs/luci-static/resources/view/secubox-portal/index.js index c059a759..1f1e625b 100644 --- a/package/secubox/luci-app-secubox-portal/htdocs/luci-static/resources/view/secubox-portal/index.js +++ b/package/secubox/luci-app-secubox-portal/htdocs/luci-static/resources/view/secubox-portal/index.js @@ -485,7 +485,8 @@ return view.extend({ categoryOrder.forEach(function(cat) { if (categories[cat] && categories[cat].length > 0) { categories[cat].forEach(function(svc) { - var url = window.location.protocol + '//' + window.location.hostname + svc.url; + // Always use http:// for local services (they don't have SSL certs) + var url = 'http://' + window.location.hostname + svc.url; var emoji = iconMap[svc.icon] || '⚡'; serviceCards.push(E('a', { 'class': 'sb-app-card sb-service-card',