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:
1 parent
288d68b954
commit
f51a4db577
2 files changed
+8
-12
No files matched your search
@@ -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`
|
- **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
|
assignment) — records both restreamed cameras with a short retention policy; detection is
|
||||||
disabled.
|
disabled.
|
||||||
- External access is via `https://hass.nul.ie` through the `middleman` reverse proxy
|
- External access is via `https://hass.nul.ie` through the `middleman` reverse proxy;
|
||||||
(`trusted_proxies`); internally it's `hass-ctr.h.nul.ie`.
|
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
|
- Not a deploy-rs target (`my.deploy.enable = false`) — it's rendered via `my.asContainer` and
|
||||||
started by `sfh`'s `my.containers.instances`.
|
started by `sfh`'s `my.containers.instances`.
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
configuration = { lib, config, pkgs, assignments, allAssignments, ... }:
|
configuration = { lib, config, pkgs, assignments, ... }:
|
||||||
let
|
let
|
||||||
inherit (lib) mkMerge mkIf mkForce;
|
inherit (lib) mkMerge mkIf mkForce;
|
||||||
inherit (lib.my) networkdAssignment;
|
inherit (lib.my) networkdAssignment;
|
||||||
@@ -208,15 +208,8 @@ in
|
|||||||
external_url = "https://hass.${pubDomain}";
|
external_url = "https://hass.${pubDomain}";
|
||||||
internal_url = "http://hass-ctr.${domain}:${toString hassPort}";
|
internal_url = "http://hass-ctr.${domain}:${toString hassPort}";
|
||||||
};
|
};
|
||||||
http = {
|
# HTTP settings (port, trusted proxies) are managed in the UI; Home Assistant ignores
|
||||||
server_port = hassPort;
|
# an `http` block here once it has migrated it to `.storage/http`.
|
||||||
use_x_forwarded_for = true;
|
|
||||||
trusted_proxies = with allAssignments.middleman.internal; [
|
|
||||||
ipv4.address
|
|
||||||
ipv6.address
|
|
||||||
];
|
|
||||||
ip_ban_enabled = false;
|
|
||||||
};
|
|
||||||
automation = "!include automations.yaml";
|
automation = "!include automations.yaml";
|
||||||
script = "!include scripts.yaml";
|
script = "!include scripts.yaml";
|
||||||
scene = "!include scenes.yaml";
|
scene = "!include scenes.yaml";
|
||||||
|
|||||||
Reference in new issue
Block a user