The source for the catcrafts.net website
- C++ 85.3%
- Shell 11.2%
- CSS 2.9%
- WGSL 0.4%
- JavaScript 0.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
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> |
||
| .forgejo/workflows | ||
| content | ||
| deploy | ||
| images | ||
| implementations | ||
| interfaces | ||
| server | ||
| shaders | ||
| shared/interfaces | ||
| styles | ||
| tests | ||
| tools | ||
| .gitignore | ||
| apple-touch-icon.png | ||
| catcrafts-head.js | ||
| favicon.ico | ||
| favicon.svg | ||
| LICENSE | ||
| project.cpp | ||
| README.md | ||
| robots.txt | ||
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.