v1.0.6 - nginx reload fix for direct ports
Fixes the Home Assistant add-on startup failure introduced in v1.0.5 when direct HTTP/HTTPS ports are enabled.
Root cause:
- v1.0.5 placed
map_hash_bucket_size 128;in the optional direct-ports nginx include. - nginx had already parsed other
mapblocks by then, so reloading the final config failed with:"map_hash_bucket_size" directive is duplicate. - The add-on exited after starting the gateway/dashboard, leaving the dashboard inaccessible.
What changed:
- Moves
map_hash_bucket_size 128;into the main nginx template before the firstmapblock. - Removes the late duplicate directive from the direct-ports include.
- Adds a regression test that locks the directive ordering.
- Bumps the add-on to v1.0.6.
Verified on a real Home Assistant add-on installation:
- Fresh
/configruntime after moving the previous add-on config aside. - Upgrade/start path reaches
nginx reloadedandAll services started. - Ingress landing page, dashboard, dashboard deep links, dashboard assets, dashboard API, and
/v1/healthall return 200.
Thanks to @imcvampire for reporting the post-v1.0.5 dashboard startup problem.