The snippet at `debian/secubox-soc-web.nginx.conf` (installed to
`/etc/nginx/secubox.d/soc-web.conf`) declared `location /soc/` —
duplicating the same location that already exists inline in
`secubox-hub`'s `sites-enabled/webui.conf`. Combined with a third orphan
file `/etc/nginx/secubox.d/soc.conf` (from a now-removed package — no
source in the repo), this triple-defined `/soc/` in a single server
block, making every `nginx -t` fail with:
[emerg] duplicate location "/soc/" in /etc/nginx/secubox.d/soc.conf:3
That failure silently no-op'd every `systemctl reload nginx` for days,
until a full `systemctl restart nginx` finally surfaced it (during the
#156 deploy — 4-min outage cascade with #162).
Fix:
- The `/soc/` static-serving block is removed from this package's
snippet. The block in webui.conf (owned by secubox-hub) is the
canonical static serving location.
- The unique `/api/v1/soc-gateway/` proxy is preserved here — that's
legitimately specific to soc-web.
Operator note: any orphan `/etc/nginx/secubox.d/soc.conf` on existing
boards must be cleaned manually (no package owns it).
Changelog bumped to 1.1.1-1.
Co-authored-by: CyberMind-FR <gandalf@Gk2.net>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- Add c3box binary build alongside secuboxd and secuboxctl
- Pre-build React app for soc-web before dpkg-buildpackage
- Update soc-web debian/rules to skip npm if dist/ pre-built
- Remove nodejs/npm Build-Depends (now pre-built in CI)
Fixes build failures for secubox-daemon and secubox-soc-web packages.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- secubox-repo: /etc/nginx/snippets/ → /etc/nginx/secubox.d/repo.conf
- secubox-soc-web: /etc/nginx/sites-available/ → /etc/nginx/secubox.d/soc-web.conf
- Remove symlink creation/removal in soc-web postinst/prerm
Location blocks must be inside a server block. The secubox.d/ directory
is included via `include /etc/nginx/secubox.d/*.conf;` in the main
server block, not at http context level like conf.d/.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>