Add /receipt/, an admin-gated proxy to the receipt printer on stppi
Test and deploy / deploy (push) Successful in 1m41s
Test and deploy / test (push) Successful in 1m17s

The receipt_maker repo's `receipt serve` runs on stppi, which reaches the
Epson printer over the home LAN, and serves a page for printing a note or
an uploaded image. nginx gates /receipt/ on the admin session like
/tracker/, strips the prefix, adds the shared X-Receipt-Token and proxies
over Tailscale to RECEIPT_WEB_UPSTREAM (the one upstream off this host).
When stppi is unreachable, @receipt_offline answers 503 instead of a bare
502.

Both variables are defaulted in entrypoint.sh, and the token is quoted in
the template, so an unset pair still renders a valid config (/receipt/
then reads "offline"). The admin panel links to the page.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-23 21:20:27 +01:00
co-authored by Claude Opus 5.5
parent e181aa09bd
commit efd74c1693
5 changed files with 78 additions and 3 deletions
+11
View File
@@ -107,6 +107,17 @@ async function handleLogout() {
>
Logs ↗
</a>
<!-- The receipt printer's page is served from stppi, which reaches
the printer on the home LAN; nginx proxies /receipt/ there over
Tailscale behind the admin check. -->
<a
class="admin-nav-link no-underline"
href="/receipt/"
target="_blank"
rel="noopener"
>
Receipt printer ↗
</a>
</nav>
<section class="admin-panel bdr-2 bg-surface">