added tailscale entries for home-assistant

This commit is contained in:
Nickiel12 2024-08-18 17:51:19 -07:00
parent f40adac04e
commit ee26c4437d
2 changed files with 19 additions and 0 deletions

View file

@ -24,4 +24,9 @@
type = "A";
value = "100.64.0.1";
}
{
name = "home-assistant.nickiel.net";
type = "A";
value = "100.64.0.1";
}
]

View file

@ -18,4 +18,18 @@
};
};
services.nginx.virtualHosts = {
"home-assistant.nickiel.net" = {
locations."/" = {
proxyPass = "http://127.0.0.1:8123";
proxyWebsockets = true;
extraConfig = ''
allow 100.64.0.0/16;
allow 127.0.0.1;
deny all;
'';
};
};
};
}