Lab project -1?
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| cmd | ||
| internal | ||
| .gitignore | ||
| COPYING | ||
| go.mod | ||
| go.sum | ||
| README.md | ||
kusunoki
software you don't need, that i barely use
go away
setup
GOEXPERIMENT=jsonv2 go build -o kusunoki cmd/fed-server.go./kusunoki -generateand edit config.json- run it
- reverse proxy. ideally only
/_matrix/key/v2/server/_matrix/federation/v1/version, in case API auth breaks
usage
use the bearer token in config to authenticate.
POST /_ks/send/{server} - send federation transactions to a server. body matches /_matrix/federation/v1/send
<any method> /_ks/request/{server}/{path} - send any kind of request to server. path is prepended with /_matrix/federation but i'll fix that later.
POST /_ks/sign - returns the JSON body, but signed by the server's federation keys.
POST /_ks/{join|leave|knock}/{room}/{localpart} - join, knock on, or leave a room
name
this is named after yua kusunoki from chaos;head. i forgot the exact reason behind the name.