homeassistant

This commit is contained in:
Mark Janssen 2024-09-25 14:32:55 +02:00
parent fc443544d3
commit 381a0e2c2e
Signed by: foobar
GPG key ID: D8674D8FC4F69BD2
3 changed files with 22 additions and 0 deletions

View file

@ -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"] }

View file

@ -10,3 +10,6 @@ group_nft_input:
nginx_sites:
- server_name: "homeassistant.bitlair.nl"
localproxy: "8123"
snippets:
- "homeassistant-nginx.j2"

View 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;
}