Commit Graph
4 Commits
Author SHA1 Message Date
franzz d2d7677519 Changing port
Deploy HEOS panel / deploy (push) Successful in 24s
2026-09-15 00:46:41 +02:00
franzzandClaude Opus 5 467cae4dd5 Add a Gitea deploy workflow and the systemd unit it restarts
Shaped after the Livetrail workflow: one job on a project-labelled host
runner, preflight checks, rsync from the runner's checkout. rsync rather
than a pull in the live directory, so the deploy needs no credentials of
its own for git:.

The tests run first and gate the rest, .venv and members.json are excluded
so the runtime and the learned stereo pair survive, and the last step
waits for the panel to answer -- the home page renders from config alone,
so it says the app came back up without waiting on the speakers.

The unit carries the real paths and user, which the README's sketch of it
never did.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 22:56:21 +02:00
franzzandClaude Opus 5 f6c98abe90 Add an nginx version of the /heos proxy
Same contract as the Apache one -- strip the prefix off the request, tell
the app about it with X-Forwarded-Prefix, keep it to the local network --
with the two things nginx needs that Apache did not: a redirect for the
bare /heos, which would otherwise miss the location and fall through to
the filesystem, and the trailing slash on proxy_pass that does the
stripping.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 22:16:30 +02:00
franzzandClaude Opus 5 6d132f53ff Serve the panel from a sub-path, and an Apache conf for /heos
The app assumed it lived at the server root: its links were /static/...
and its fetches /api/..., which behind a proxy at /heos resolve to the
wrong place, so the page would load and nothing on it would work.

It now takes the prefix from X-Forwarded-Prefix, and everything it
generates -- stylesheet, icons, the manifest's start_url, every fetch --
follows. Nothing changes when it is served from its own port.

deploy/heos.conf is the Apache side, restricted to the local network by
default, since this controls the speakers and the vhost it hangs off has
a public certificate.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 21:57:16 +02:00