1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Fix nodered reverseproxy

This commit is contained in:
Anish Mangal 2019-02-10 10:20:43 +00:00
parent 46c56610de
commit e76bbc5825
3 changed files with 11 additions and 3 deletions

View file

@ -79,6 +79,11 @@
state: absent
when: not nodered_enabled
- name: Enable proxy_wstunnel apache2 module
apache2_module:
state: present
name: proxy_wstunnel
- name: Restart apache2 service
systemd:
name: apache2

View file

@ -1,2 +1,5 @@
ProxyPass /{{ nodered_web_path }} http://localhost:{{ nodered_port }}
ProxyPassReverse /{{ nodered_web_path }} http://localhost:{{ nodered_port }}
ProxyPreserveHost On
ProxyRequests Off
ProxyPass /{{ nodered_web_path }}/debug/ws ws://localhost:1880/{{ nodered_web_path }}/debug/ws
ProxyPass /{{ nodered_web_path }} http://localhost:{{ nodered_port }}/{{ nodered_web_path }}
ProxyPassReverse /{{ nodered_web_path }} http://localhost:{{ nodered_port }}/{{ nodered_web_path }}

View file

@ -96,7 +96,7 @@ module.exports = {
// The following property can be used in place of 'httpAdminRoot' and 'httpNodeRoot',
// to apply the same root to both parts.
//httpRoot: '/red',
httpRoot: '/{{ nodered_web_path }}',
// When httpAdminRoot is used to move the UI to a different root path, the
// following property can be used to identify a directory of static content