330ec8c5038b279ffb014fcca174eac356de542d
`just boot-vm` forwards the guest's port 80 to host port 8080 (QEMU_NET_OPTS in the justfile), but the backend builds absolute URLs (e.g. the stored company logo path returned by the upload API) from APP_URL, which defaults to plain "http://localhost" with no port. The SPA's own relative URLs are fine - they inherit whatever port the browser is already on - but any backend-generated absolute URL then points at host port 80, where nothing is listening, instead of the forwarded 8080. That gave a silent net::ERR_CONNECTION_REFUSED for the logo image specifically, even though the upload itself succeeded. Verified directly: with APP_URL overridden to "http://localhost:8080", a freshly uploaded logo's URL is "http://localhost:8080/storage/.../....png" instead of missing the port. Automated test checks are unaffected (checks derivation hash unchanged) since they curl the guest's own localhost directly, with no host-side port remap involved. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Description
Invoice Ninja NixOS derivation and module
391 KiB
Languages
Nix
85.7%
Shell
11.5%
Just
2.8%