added components to home assistant
This commit is contained in:
parent
86c585111c
commit
99e57603c7
1 changed files with 15 additions and 0 deletions
|
@ -18,11 +18,22 @@ in {
|
|||
{
|
||||
services.home-assistant = {
|
||||
enable = true;
|
||||
configDir = configDir;
|
||||
extraComponents = [
|
||||
"esphome"
|
||||
"met"
|
||||
"radio_browser"
|
||||
"isal"
|
||||
"zha"
|
||||
"jellyfin"
|
||||
"webostv"
|
||||
"tailscale"
|
||||
"syncthing"
|
||||
"sonos"
|
||||
"analytics_insights"
|
||||
"unifi"
|
||||
"minecraft_server"
|
||||
"openweathermap"
|
||||
];
|
||||
config.http = {
|
||||
server_port = 8082;
|
||||
|
@ -44,12 +55,16 @@ in {
|
|||
extraConfig = ''
|
||||
add_header Upgrade $http_upgrade;
|
||||
add_header Connection \"upgrade\";
|
||||
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header X-Forwarded-Host $server_name;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
proxy_buffering off;
|
||||
|
||||
proxy_read_timeout 90;
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue