From 76fe902c46509bbf7580be078e647784c1122dff Mon Sep 17 00:00:00 2001 From: Anish Mangal Date: Sun, 10 Feb 2019 11:32:28 +0000 Subject: [PATCH] Nodered: allow sockets over /comms in rev-proxy in apache config --- roles/nodered/templates/nodered.conf.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/nodered/templates/nodered.conf.j2 b/roles/nodered/templates/nodered.conf.j2 index 72d6b99f1..916e1eed2 100644 --- a/roles/nodered/templates/nodered.conf.j2 +++ b/roles/nodered/templates/nodered.conf.j2 @@ -1,5 +1,6 @@ ProxyPreserveHost On ProxyRequests Off -ProxyPass /{{ nodered_web_path }}/debug/ws ws://localhost:1880/{{ nodered_web_path }}/debug/ws +ProxyPass /{{ nodered_web_path }}/debug/ws ws://localhost:{{ nodered_port }}/{{ nodered_web_path }}/debug/ws +ProxyPass /{{ nodered_web_path }}/comms ws://localhost:{{ nodered_port }}/{{ nodered_web_path }}/comms ProxyPass /{{ nodered_web_path }} http://localhost:{{ nodered_port }}/{{ nodered_web_path }} ProxyPassReverse /{{ nodered_web_path }} http://localhost:{{ nodered_port }}/{{ nodered_web_path }}