Files
Claude 2087da7f18 birdnet-go: harden config init, auto-wire MQTT/MariaDB, trim ingress proxy
Bugs fixed in 01-structure.sh:
- Database backup created during BIRDSONGS_FOLDER migration was written
  to the script's CWD instead of /config, and the restore path was
  recomputed with a fresh timestamp — so any second-boundary crossing
  between backup and restore left the user unable to recover. Backup
  path is now absolute and reused for restore.
- Path inputs are validated against [A-Za-z0-9._/-]+ before being
  interpolated into the SQL UPDATE statement.
- Default-config download tolerates network failure instead of leaving
  an empty config.yaml behind.
- output.sqlite.path and logging.file_output.* are now seeded with the
  "set-if-missing" idiom (`//=`) so user edits to config.yaml survive
  restarts. (Breaking: addon options for log rotation now only seed
  defaults on first run.)
- Path normalization centralized; trailing-slash juggling removed.

UX upgrades:
- 33-mqtt.sh now auto-configures realtime.mqtt.* in config.yaml from
  the HA Mosquitto addon (with new mqtt_disable opt-out option).
- 33-mariadb.sh now auto-switches output.mysql.* to the HA MariaDB
  addon and disables SQLite (with mariadb_disable opt-out option).

Cleanup:
- Dockerfile: upstream entrypoint sed-patch now warns (not silently
  succeeds) when the target pattern is missing in a new nightly.
- Removed dead nginx upstream.conf pointing at unused port 8096.
- Trimmed redundant nginx HTML-attribute sub_filters; upstream
  birdnet-go handles those itself via X-Ingress-Path. JS string
  rewrites kept since the upstream HTML rewriter does not touch JS.
  (Breaking UI-side if upstream regresses — see CHANGELOG.)
2026-05-28 17:01:42 +00:00
..