mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
oversignts and corrections -- most now seem to work on rpi
This commit is contained in:
parent
4778ad5e3c
commit
cffb6afecc
23 changed files with 452 additions and 23 deletions
|
@ -171,6 +171,15 @@
|
|||
mode: 0666
|
||||
when: nodered_install | bool
|
||||
|
||||
- name: Install nginx's conf.d file from template
|
||||
template:
|
||||
src: nodered-nginx.conf.j2
|
||||
dest: /etc/nginx/conf.d/nodered-nginx.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0666
|
||||
when: nodered_install | bool
|
||||
|
||||
- name: Create symlink nodered.conf from sites-enabled to sites-available, for short URL http://box/nodered (if nodered_enabled)
|
||||
file:
|
||||
src: /etc/apache2/sites-available/nodered.conf
|
||||
|
@ -187,6 +196,12 @@
|
|||
when: not nodered_enabled
|
||||
|
||||
# SEE ALSO THE apache2_module SECTION IN roles/httpd/tasks/main.yml
|
||||
- name: Remove symlink /etc/nginx/conf.d/nodered-nginx.conf (if not nodered_enabled)
|
||||
file:
|
||||
path: /etc/nginx/conf.d/nodered-nginx.conf
|
||||
state: absent
|
||||
when: not nodered_enabled
|
||||
|
||||
- name: Enable proxy_wstunnel apache2 module
|
||||
apache2_module:
|
||||
state: present
|
||||
|
|
3
roles/nodered/templates/nodered-nginx.conf.j2
Normal file
3
roles/nodered/templates/nodered-nginx.conf.j2
Normal file
|
@ -0,0 +1,3 @@
|
|||
location /nodered {
|
||||
proxy_pass http://127.0.0.1:{{ apache_port }}/nodered;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue