disabled home assistant

This commit is contained in:
Leyla Becker 2025-03-22 12:50:17 -05:00
parent 4f30643513
commit 76d68cf146
2 changed files with 22 additions and 22 deletions

View file

@ -108,7 +108,7 @@
subdomain = "search"; subdomain = "search";
}; };
home-assistant = { home-assistant = {
enable = true; enable = false;
subdomain = "home"; subdomain = "home";
}; };
adguardhome = { adguardhome = {

View file

@ -32,20 +32,20 @@ in {
failregex = ".*(Failed authentication attempt|invalid credentials|Attempted access of unknown user).* from <HOST>" failregex = ".*(Failed authentication attempt|invalid credentials|Attempted access of unknown user).* from <HOST>"
'') '')
); );
"fail2ban/filter.d/hass.local".text = lib.mkIf config.services.home-assistant.enable ( # "fail2ban/filter.d/hass.local".text = lib.mkIf config.services.home-assistant.enable (
pkgs.lib.mkDefault (pkgs.lib.mkAfter '' # pkgs.lib.mkDefault (pkgs.lib.mkAfter ''
[INCLUDES] # [INCLUDES]
before = common.conf # before = common.conf
[Definition] # [Definition]
failregex = ^%(__prefix_line)s.*Login attempt or request with invalid authentication from <HOST>.*$ # failregex = ^%(__prefix_line)s.*Login attempt or request with invalid authentication from <HOST>.*$
ignoreregex = # ignoreregex =
[Init] # [Init]
datepattern = ^%%Y-%%m-%%d %%H:%%M:%%S # datepattern = ^%%Y-%%m-%%d %%H:%%M:%%S
'') # '')
); # );
"fail2ban/filter.d/immich.local".text = lib.mkIf config.services.immich.enable ( "fail2ban/filter.d/immich.local".text = lib.mkIf config.services.immich.enable (
pkgs.lib.mkDefault (pkgs.lib.mkAfter '' pkgs.lib.mkDefault (pkgs.lib.mkAfter ''
[Definition] [Definition]
@ -105,16 +105,16 @@ in {
bantime = 600; bantime = 600;
maxretry = 5; maxretry = 5;
}; };
home-assistant-iptables.settings = lib.mkIf config.services.home-assistant.enable { # home-assistant-iptables.settings = lib.mkIf config.services.home-assistant.enable {
enabled = true; # enabled = true;
filter = "hass"; # filter = "hass";
action = ''iptables-multiport[name=HTTP, port="http,https"]''; # action = ''iptables-multiport[name=HTTP, port="http,https"]'';
logpath = "${config.services.home-assistant.configDir}/*.log"; # logpath = "${config.services.home-assistant.configDir}/*.log";
backend = "auto"; # backend = "auto";
findtime = 600; # findtime = 600;
bantime = 600; # bantime = 600;
maxretry = 5; # maxretry = 5;
}; # };
immich-iptables.settings = lib.mkIf config.services.immich.enable { immich-iptables.settings = lib.mkIf config.services.immich.enable {
enabled = true; enabled = true;
filter = "immich"; filter = "immich";