From f51a4db577e49483f9d2a3ceb8273d7b2d8f8da4 Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Sun, 22 Nov 2026 00:29:07 +0000 Subject: [PATCH] hass: Drop the ignored HTTP YAML configuration Home Assistant 2026.8 imported the `http` block into `.storage/http` and has ignored it since, raising a repair to remove it. Keeping it in Nix suggested that `trusted_proxies` still followed `middleman`'s assignments. Remove it and document that the HTTP settings are managed in the UI. Co-Authored-By: Claude Opus 5.5 --- docs/sites/home/sfh/containers/hass.md | 7 +++++-- nixos/boxes/home/palace/vms/sfh/containers/hass.nix | 13 +++---------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/docs/sites/home/sfh/containers/hass.md b/docs/sites/home/sfh/containers/hass.md index a69a349..7382969 100644 --- a/docs/sites/home/sfh/containers/hass.md +++ b/docs/sites/home/sfh/containers/hass.md @@ -22,8 +22,11 @@ integrations. A `hass-cli` wrapper uses a token from `my.secrets` to reach the l - **Frigate** (`services.frigate`, `frigate.h.nul.ie` — the `frigate` alt name on the `hi` assignment) — records both restreamed cameras with a short retention policy; detection is disabled. -- External access is via `https://hass.nul.ie` through the `middleman` reverse proxy - (`trusted_proxies`); internally it's `hass-ctr.h.nul.ie`. +- External access is via `https://hass.nul.ie` through the `middleman` reverse proxy; + internally it's `hass-ctr.h.nul.ie`. Home Assistant's HTTP settings (port `8123`, forwarded + headers and `middleman`'s addresses as trusted proxies) live in the UI under Settings › System + › Network, stored in `.storage/http`, not in Nix. Update the trusted proxies there if + `middleman`'s addresses change, or logins through the proxy will fail. - Not a deploy-rs target (`my.deploy.enable = false`) — it's rendered via `my.asContainer` and started by `sfh`'s `my.containers.instances`. diff --git a/nixos/boxes/home/palace/vms/sfh/containers/hass.nix b/nixos/boxes/home/palace/vms/sfh/containers/hass.nix index 92c520d..27c805e 100644 --- a/nixos/boxes/home/palace/vms/sfh/containers/hass.nix +++ b/nixos/boxes/home/palace/vms/sfh/containers/hass.nix @@ -42,7 +42,7 @@ in }; }; - configuration = { lib, config, pkgs, assignments, allAssignments, ... }: + configuration = { lib, config, pkgs, assignments, ... }: let inherit (lib) mkMerge mkIf mkForce; inherit (lib.my) networkdAssignment; @@ -208,15 +208,8 @@ in external_url = "https://hass.${pubDomain}"; internal_url = "http://hass-ctr.${domain}:${toString hassPort}"; }; - http = { - server_port = hassPort; - use_x_forwarded_for = true; - trusted_proxies = with allAssignments.middleman.internal; [ - ipv4.address - ipv6.address - ]; - ip_ban_enabled = false; - }; + # HTTP settings (port, trusted proxies) are managed in the UI; Home Assistant ignores + # an `http` block here once it has migrated it to `.storage/http`. automation = "!include automations.yaml"; script = "!include scripts.yaml"; scene = "!include scenes.yaml";