Skip to content

Commit b9523da

Browse files
committed
added routed to appmetrics dashboard for node-red-test to nginx conf
1 parent 9143c84 commit b9523da

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

nginx/nginx.conf

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,20 @@ http {
4141
proxy_set_header Connection "upgrade";
4242

4343
proxy_pass http://node-red-test:1880;
44+
}
45+
46+
# /node-red-test will point to the appmetrics dashboard for node-red-test
47+
# see also https://github.com/RuntimeTools/appmetrics-dash
48+
location /appmetrics-dash {
49+
proxy_set_header Host $http_host;
50+
proxy_set_header X-Real-IP $remote_addr;
51+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
52+
proxy_set_header X-Forwarded-Proto $scheme;
53+
proxy_http_version 1.1;
54+
proxy_set_header Upgrade $http_upgrade;
55+
proxy_set_header Connection "upgrade";
56+
57+
proxy_pass http://node-red-test:3001/appmetrics-dash;
4458
}
4559
}
4660
}

0 commit comments

Comments
 (0)