karma-web: static HTML karma board served at karma.devtronic.pro
All checks were successful
ci / check (push) Successful in 43s

This commit is contained in:
Jean Chevronnet 2026-07-29 23:27:39 +00:00
parent e801b04d6e
commit 9a3393153a
No known key found for this signature in database
GPG key ID: 439666D63A9477E4
6 changed files with 339 additions and 1 deletions

View file

@ -77,6 +77,22 @@ lists them at runtime and `help <command>` describes one.
| `tinyurl <url>` | shorten a URL |
| `down <host>` | is a site reachable? |
## Karma web page
The live karma board is published at **<https://karma.devtronic.pro>**. A second
binary, `karma-web`, reads the per-network `karma.*.json` files and renders one
self-contained HTML page (no JS/CSS/font dependencies, all IRC-supplied text
HTML-escaped); a systemd timer regenerates it every minute and nginx serves it
over TLS.
```sh
cargo build --release --bin karma-web
./target/release/karma-web <data-dir> <out.html> # omit out.html to print to stdout
```
On mars: `karma-web.service` + `karma-web.timer` write `/var/www/karma/index.html`,
served by the `karma.devtronic.pro.conf` vhost.
## Build & run
```sh