Seed HA's HTTP config store instead of the http YAML block
Since 2026.10 HA imports an http: block only as an unconfirmed trial and reverts it after 5 minutes, which breaks access through the ingress (400). Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -4,7 +4,7 @@ Helm chart for [Home Assistant](https://www.home-assistant.io/) (container insta
|
||||
single-node cluster (`loki`), deployed by ArgoCD via the `apps-in-apps` repo into the
|
||||
namespace `homeassistant`.
|
||||
|
||||
URL: https://homeassistant.smokyzone.de:30444 (LAN / Tailscale only; the DNS record
|
||||
URL: https://homeassistant.smokyzone.de (LAN / Tailscale only; the DNS record
|
||||
points at the node's private IP `192.168.2.218`). Certificate from
|
||||
`letsencrypt-dns-cloudflare` (DNS-01).
|
||||
|
||||
@@ -16,16 +16,14 @@ points at the node's private IP `192.168.2.218`). Certificate from
|
||||
discovery.
|
||||
- **Config** lives on the `local-path` PVC `homeassistant-config` (`/config`), which is kept
|
||||
when the app is deleted. Back it up (users, integrations, history are in there).
|
||||
- **configuration.yaml** is seeded once by an init container (see `seedConfiguration` in
|
||||
`values.yaml`), including the reverse-proxy block:
|
||||
|
||||
```yaml
|
||||
http:
|
||||
use_x_forwarded_for: true
|
||||
trusted_proxies: [10.1.0.0/16, 127.0.0.1]
|
||||
```
|
||||
|
||||
Without it HA answers `400 Bad Request` through the ingress. After the first start the
|
||||
- **Reverse proxy**: since 2026.10 HA keeps its HTTP settings in `/config/.storage/http`
|
||||
(managed in the UI under *Settings → System → Network*). An `http:` block in
|
||||
`configuration.yaml` is only imported once as an unconfirmed trial and silently reverted
|
||||
after 5 minutes (then HA answers `400 Bad Request` through the ingress). The init
|
||||
container therefore seeds that store on first start with
|
||||
`use_x_forwarded_for: true` and `trustedProxies` from `values.yaml` (pod network
|
||||
`10.1.0.0/16`). An existing store is never overwritten.
|
||||
- **configuration.yaml** is seeded once (`seedConfiguration`). After the first start the
|
||||
file is yours; the chart never overwrites it. Edit it with
|
||||
`kubectl -n homeassistant exec -it deploy/homeassistant -- vi /config/configuration.yaml`
|
||||
and restart the pod (or *Developer tools → YAML → Restart* in the UI).
|
||||
@@ -36,10 +34,10 @@ points at the node's private IP `192.168.2.218`). Certificate from
|
||||
|
||||
## First start
|
||||
|
||||
1. Open https://homeassistant.smokyzone.de:30444 and create the owner account during
|
||||
1. Open https://homeassistant.smokyzone.de and create the owner account during
|
||||
onboarding (first visitor becomes the owner, so do this right away).
|
||||
2. Home location / units / language (Deutsch) in the onboarding wizard.
|
||||
3. Companion app: server URL `https://homeassistant.smokyzone.de:30444` (works at home and
|
||||
3. Companion app: server URL `https://homeassistant.smokyzone.de` (works at home and
|
||||
via Tailscale).
|
||||
|
||||
## Upgrades
|
||||
|
||||
Reference in New Issue
Block a user