Skip to content

Commit d301858

Browse files
committed
welcome on dashboard
1 parent 17370b9 commit d301858

4 files changed

Lines changed: 15 additions & 5 deletions

File tree

node-red/justfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
setup:
22
npm install --omit=dev
33
cd nodes && npm install --without=dev
4+
sudo systemctl enable nodered
5+
sudo systemctl restart nodered
46

57
setup-dev:
68
sudo apt install -y dasel

node-red/settings.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ module.exports = {
194194
* can be used to specify a different root path. If set to false, this is
195195
* disabled.
196196
*/
197-
httpNodeRoot: "/ps/node-red-v2",
197+
// httpNodeRoot: "/ps/node-red-v2",
198198

199199
/** The following property can be used to configure cross-origin resource sharing
200200
* in the HTTP nodes.
@@ -529,7 +529,7 @@ module.exports = {
529529
* middleware:{function or array}, (req,res,next) - http middleware
530530
* ioMiddleware:{function or array}, (socket,next) - socket.io middleware
531531
*/
532-
//ui: { path: "ui" },
532+
ui: { path: "/" },
533533

534534
/** Colourise the console output of the debug node */
535535
//debugUseColors: true,

os/caddy/Caddyfile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
# https://caddyserver.com/docs/caddyfile
33

44
:80 {
5-
redir / /ps/node-red-v2/ui
5+
redir / /dashboard/
6+
7+
handle /ps/hal/camera/streams/preview.mjpg {
8+
rewrite * /stream.mjpg
9+
reverse_proxy localhost:8000
10+
}
611

712
handle /ps/hal/camera/streams/preview.mjpg {
813
rewrite * /stream.mjpg
@@ -19,8 +24,10 @@
1924
reverse_proxy localhost:1880
2025
}
2126

22-
redir /ps/node-red-v2 /ps/node-red-v2/
23-
handle /ps/node-red-v2/* {
27+
# base path cannot be changed
28+
# even with url rewrite, it shows a white page after loading
29+
# https://github.com/FlowFuse/node-red-dashboard/issues/586
30+
handle /dashboard/* {
2431
reverse_proxy localhost:1880
2532
}
2633

os/caddy/justfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ setup:
22
sudo apt install -y caddy
33
sudo cp Caddyfile /etc/caddy/
44
sudo systemctl enable caddy
5+
sudo systemctl restart caddy
56
sudo firewall-cmd --permanent --zone=public --add-service=http
67

78
format:

0 commit comments

Comments
 (0)