karma-web: static HTML karma board served at karma.devtronic.pro
All checks were successful
ci / check (push) Successful in 43s
All checks were successful
ci / check (push) Successful in 43s
This commit is contained in:
parent
e801b04d6e
commit
9a3393153a
6 changed files with 339 additions and 1 deletions
16
README.md
16
README.md
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue