forked from bitlair/ansible
homeassistant
This commit is contained in:
parent
fc443544d3
commit
381a0e2c2e
3 changed files with 22 additions and 0 deletions
|
@ -10,6 +10,11 @@
|
|||
roles:
|
||||
- { role: "bank", tags: ["bank"] }
|
||||
|
||||
- hosts: homeassistant
|
||||
roles:
|
||||
- { role: "acme", tags: ["acme"] }
|
||||
- { role: "nginx", tags: ["nginx"] }
|
||||
|
||||
- hosts: raspi
|
||||
roles:
|
||||
- { role: "raspi", tags: ["raspi"] }
|
||||
|
|
|
@ -10,3 +10,6 @@ group_nft_input:
|
|||
|
||||
nginx_sites:
|
||||
- server_name: "homeassistant.bitlair.nl"
|
||||
localproxy: "8123"
|
||||
snippets:
|
||||
- "homeassistant-nginx.j2"
|
||||
|
|
14
snippets/homeassistant-nginx.j2
Normal file
14
snippets/homeassistant-nginx.j2
Normal file
|
@ -0,0 +1,14 @@
|
|||
location /api/ {
|
||||
proxy_pass http://127.0.0.1:8123;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
proxy_set_header Host $host;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:8123;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue