We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44da5da commit fb167c4Copy full SHA for fb167c4
1 file changed
os/caddy/Caddyfile
@@ -72,6 +72,16 @@
72
}
73
74
75
+ # alias /dashboard -> real Node-RED dashboard path
76
+ # FlowFuse Dashboard 2 reload-after-disconnect bug: when the WebSocket
77
+ # drops (laptop sleep, planktoscope reboot, etc.) the bundled JS calls
78
+ # new URL(window.location.origin + "/dashboard") to refresh, ignoring
79
+ # the actual httpNodeRoot. Without this alias the reload URL becomes
80
+ # /dashboard?reloadTime=... and falls through to the SPA 404 page.
81
+ # see https://github.com/FlowFuse/node-red-dashboard/issues/2149
82
+ redir /dashboard /ps/node-red-v2/dashboard/ 302
83
+ redir /dashboard/ /ps/node-red-v2/dashboard/ 302
84
+
85
# Frontend fallback (everything else)
86
handle {
87
root * /opt/PlanktoScope/frontend/dist
0 commit comments