created home assistant service

This commit is contained in:
Leyla Becker 2025-01-02 18:22:05 -06:00
parent 1824bc8cc9
commit a4e308650f
4 changed files with 56 additions and 21 deletions

View file

@ -77,6 +77,10 @@
enable = true;
subdomain = "search";
};
home-assistant = {
enable = true;
subdomain = "home";
};
};
networking = {
hostId = "c51763d6";

View file

@ -239,17 +239,6 @@ in {
};
};
home-assistant = {
enable = true;
config.http = {
server_port = 8082;
use_x_forwarded_for = true;
trusted_proxies = ["127.0.0.1"];
ip_ban_enabled = true;
login_attempts_threshold = 10;
};
};
# nextcloud here is built using its auto setup mysql db because it was not playing nice with postgres
nextcloud = {
enable = true;
@ -271,16 +260,6 @@ in {
proxyWebsockets = true;
};
};
${config.apps.forgejo.hostname} = {
# forceSSL = true;
# enableACME = true;
locations."/".proxyPass = "http://localhost:${toString config.services.forgejo.settings.server.HTTP_PORT}";
};
${config.apps.home-assistant.hostname} = {
# forceSSL = true;
# enableACME = true;
locations."/".proxyPass = "http://localhost:${toString config.services.home-assistant.config.http.server_port}";
};
};
};
};