From aeb76ef4125f621cad11acf3e5d6b97cfac9d28a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 13 Sep 2023 09:53:19 +0200 Subject: nixos: redirect logging to cynerd.cz --- nixos/machine/lipwig.nix | 1 + nixos/machine/spt-mox.nix | 2 +- nixos/modules/home-assistant.nix | 1 + nixos/modules/monitoring.nix | 3 +-- 4 files changed, 4 insertions(+), 3 deletions(-) (limited to 'nixos') diff --git a/nixos/machine/lipwig.nix b/nixos/machine/lipwig.nix index f235455..042ee27 100644 --- a/nixos/machine/lipwig.nix +++ b/nixos/machine/lipwig.nix @@ -60,6 +60,7 @@ with lib; { useACMEHost = "cynerd.cz"; locations."/" = { proxyPass = "http://127.0.0.1:${toString config.services.grafana.settings.server.http_port}/"; + extraConfig = "proxy_set_header Host $host;"; proxyWebsockets = true; }; }; diff --git a/nixos/machine/spt-mox.nix b/nixos/machine/spt-mox.nix index accd963..7dc74fa 100644 --- a/nixos/machine/spt-mox.nix +++ b/nixos/machine/spt-mox.nix @@ -10,7 +10,7 @@ with lib; { cynerd = { home-assistant = true; wifiAP.spt = { - enable = true; + enable = false; qca988x = { interface = "wls1"; channel = 7; diff --git a/nixos/modules/home-assistant.nix b/nixos/modules/home-assistant.nix index efe5b84..813b41b 100644 --- a/nixos/modules/home-assistant.nix +++ b/nixos/modules/home-assistant.nix @@ -147,6 +147,7 @@ in { extraPackages = pkgs: with pkgs; [ securetar + pyipp ]; packageOverrides = self: super: { scapy = super.scapy.override { diff --git a/nixos/modules/monitoring.nix b/nixos/modules/monitoring.nix index 7a9e7b7..36cd387 100644 --- a/nixos/modules/monitoring.nix +++ b/nixos/modules/monitoring.nix @@ -45,8 +45,7 @@ in { agent = {}; outputs.influxdb_v2 = [ { - # TODO change to lipwig!! - urls = ["http://errol:8086"]; + urls = ["http://cynerd.cz:8086"]; token = "$INFLUX_TOKEN"; organization = "personal"; bucket = "monitoring"; -- cgit v1.2.3