Commit graph catcrafts.net/deploy/Caddyfile.example
Author SHA1 Message Date
5de9107d31
deploy: the bank callback's controls are in the Caddy example
All checks were successful
Deploy / build-deploy (push) Successful in 7m4s
The README says a bank callback is not signed and that three controls
in Caddy "all have to stay in place": a source-IP allowlist, a path of
which only the non-secret prefix is in the web server's config, and
log_skip. Caddyfile.example had none of them. A host set up from it
proxied the callback to the backend from anyone and wrote the secret
path to the access log, which feeds the public analytics page.

The example now has the block: /hooks/bunq/* answers 403 to anything
outside the bank's range, is kept out of the log, and is proxied. It
adapts with Caddy 2.11.7 and sorts ahead of the catch-all. Both proxy
blocks carry a 64 KiB request_body cap, the same as the backend's.

catcrafts-analytics drops /hooks lines from the public tier as well, so
the public page does not rest on that one directive.

The README no longer says the backend binds loopback, because it does
not: ListenerHTTP1 takes a port and no address and binds every IPv4
interface, while the server logs 127.0.0.1 (Crafter.Network issue 11
asks for the address). The firewall on 8081 is what the per-peer limit,
the callback's allowlist and the request-size bound rest on, with the
two commands that check it.

It also documents what the earlier commits changed: the claims file
and what to do with a payment that named two orders, the rule that a
reference names one order, a payment being counted once whatever the
credits file holds, and the ledger being held in memory.

The server's copies of the Caddyfile and of the analytics script are
installed by hand and are not changed by a deploy.

Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>
2026-11-26 11:05:35 +01:00
a8bc400371 video seo
All checks were successful
Deploy / build-deploy (push) Successful in 2m33s
2026-08-19 00:02:32 +02:00
faf881fa0c added missing icons
All checks were successful
Deploy / build-deploy (push) Successful in 3m0s
2026-08-18 21:21:41 +02:00
70668af8f5 coingate
All checks were successful
Deploy / build-deploy (push) Successful in 3m10s
2026-08-13 23:34:19 +02:00
ae30ac69f7 privacy policy
All checks were successful
Deploy / build-deploy (push) Successful in 8m1s
2026-08-08 14:38:14 +02:00
8cd4d55d00 analytics: GoAccess reports from the Caddy logs, public and private tiers
Server-side only, per the privacy policy: no client-side analytics. Rotated
logs ingest exactly once into per-tier DBs; the public tier is anonymized
at ingest and never receives censored paths. Log retention raised to a year.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-08 02:50:52 +02:00
1b59b548fa caddy
Some checks failed
Deploy / build-deploy (push) Failing after 5m4s
2026-08-05 04:32:52 +02:00
934c94cb5c rewrite
Some checks failed
Deploy / build-deploy (push) Failing after 4m56s
2026-08-05 04:18:37 +02:00
d3dd4b1f7a Add Forgejo Actions workflow to build and deploy on push
Some checks failed
Deploy / build-deploy (push) Failing after 1m0s
- .forgejo/workflows/deploy.yaml: build the wasm bundle on the arch-latest
  Docker runner and rsync it into the bind-mounted web root (/deploy) on
  push to master
- deploy/Caddyfile.example: reference site block with the cross-origin
  isolation headers the WASM runtime requires

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-18 23:27:41 +02:00