Quellcode durchsuchen

fix node-red debug window websocket connection

Thomas Buck vor 2 Jahren
Ursprung
Commit
118fde7b7e

+ 4
- 0
roles/iot/tasks/nodered.yml Datei anzeigen

@@ -11,6 +11,10 @@
11 11
 - name: Run Node-Red install script
12 12
   shell: /root/nodered/update-nodejs-and-nodered --confirm-root --confirm-install --skip-pi --restart --update-nodes
13 13
 
14
+- name: Enable Apache wstunnel module
15
+  command: a2enmod proxy_wstunnel creates=/etc/apache2/mods-enabled/proxy_wstunnel.load
16
+  notify: restart apache
17
+
14 18
 - name: Register new Node-Red service
15 19
   systemd: name=nodered daemon_reload=yes enabled=yes
16 20
 

+ 4
- 0
roles/iot/templates/etc_apache2_sites-available_grafana.j2 Datei anzeigen

@@ -11,6 +11,7 @@
11 11
     ServerAlias {{ domain }}
12 12
 
13 13
     SSLEngine               On
14
+    SSLProxyEngine          On
14 15
     DocumentRoot            "{{ item.doc_root }}"
15 16
     DirectoryIndex          index.html
16 17
     Options                 -Indexes
@@ -25,6 +26,9 @@
25 26
     ProxyRequests           Off
26 27
     ProxyPreserveHost       On
27 28
 
29
+    ProxyPass               /nodered/comms ws://localhost:1880/comms
30
+    ProxyPassReverse        /nodered/comms ws://localhost:1880/comms
31
+
28 32
     ProxyPass               /nodered/ http://localhost:1880/
29 33
     ProxyPassReverse        /nodered/ http://localhost:1880/
30 34
 

Laden…
Abbrechen
Speichern