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 <noreply@anthropic.com>
This commit is contained in:
jackos1998andClaude Opus 5.5 committed 2026-11-22 15:11:44 +00:00
1 parent 288d68b954
commit f51a4db577
2 files changed
+8 -12

No files matched your search

+5 -2
View File
@@ -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`.
@@ -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";