Skip to content

v1.0.6 - nginx reload fix for direct ports

Choose a tag to compare

@WolframRavenwolf WolframRavenwolf released this 16 May 20:31
· 19 commits to main since this release

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 map blocks 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 first map block.
  • 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 /config runtime after moving the previous add-on config aside.
  • Upgrade/start path reaches nginx reloaded and All services started.
  • Ingress landing page, dashboard, dashboard deep links, dashboard assets, dashboard API, and /v1/health all return 200.

Thanks to @imcvampire for reporting the post-v1.0.5 dashboard startup problem.