Add /receipt/, an admin-gated proxy to the receipt printer on stppi
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:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user