Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions os/caddy/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,16 @@
}
}

# alias /dashboard -> real Node-RED dashboard path
# FlowFuse Dashboard 2 reload-after-disconnect bug: when the WebSocket
# drops (laptop sleep, planktoscope reboot, etc.) the bundled JS calls
# new URL(window.location.origin + "/dashboard") to refresh, ignoring
# the actual httpNodeRoot. Without this alias the reload URL becomes
# /dashboard?reloadTime=... and falls through to the SPA 404 page.
# see https://github.com/FlowFuse/node-red-dashboard/issues/2149
redir /dashboard /ps/node-red-v2/dashboard/ 302
redir /dashboard/ /ps/node-red-v2/dashboard/ 302

# Frontend fallback (everything else)
handle {
root * /opt/PlanktoScope/frontend/dist
Expand Down