The source for the catcrafts.net website
  • C++ 85.3%
  • Shell 11.2%
  • CSS 2.9%
  • WGSL 0.4%
  • JavaScript 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jorijn van der Graaf 5de9107d31
All checks were successful
Deploy / build-deploy (push) Successful in 7m4s
deploy: the bank callback's controls are in the Caddy example
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
.forgejo/workflows CI: give the deploy runner a label of its own (catcrafts-deploy) 2026-10-17 00:22:50 +02:00
content markdown fix 2026-08-18 11:12:24 +02:00
deploy deploy: the bank callback's controls are in the Caddy example 2026-11-26 11:05:35 +01:00
images removed fp6 from shop 2026-09-05 18:38:39 +02:00
implementations posts and avif 2026-08-10 01:37:26 +02:00
interfaces rewrite 2026-08-05 04:18:37 +02:00
server bank: a payment is spent once 2026-11-26 11:05:35 +01:00
shaders webgpu demo 2026-07-19 01:13:30 +02:00
shared/interfaces checkout: an address field is one line, and the invoice prints it as text 2026-11-26 11:05:35 +01:00
styles bank: the order page offers a payto link and quotes one reference 2026-11-25 15:33:50 +01:00
tests bank: a payment is spent once 2026-11-26 11:05:35 +01:00
tools dev: tools/dev.sh builds and serves through the Crafter.Build Flatpak 2026-11-25 15:33:50 +01:00
.gitignore crypto fix 2026-08-19 23:55:01 +02:00
apple-touch-icon.png added missing icons 2026-08-18 21:21:41 +02:00
catcrafts-head.js added missing icons 2026-08-18 21:21:41 +02:00
favicon.ico added missing icons 2026-08-18 21:21:41 +02:00
favicon.svg new logo 2026-08-05 23:52:40 +02:00
LICENSE inital commit 2025-11-12 20:58:07 +01:00
project.cpp bank: Nostro reads the bank's callback, and the shop's bunq code is gone 2026-11-25 15:08:42 +01:00
README.md fixed links 2026-08-08 20:04:36 +02:00
robots.txt about page 2026-08-05 07:05:00 +02:00

catcrafts.net

This is the source code for catcrafts.net, a website built entirely in C++ using the Crafter.Graphics library.

./tools/dev.sh

This will compile the project and serve it locally on http:://localhost:8080.

This project is source available for educational and viewing purposes only. No permission is granted to copy, modify, distribute, or create derivative works.