9250ab3046
Flake lock file updates: • Updated input 'naersk': 'github:nix-community/naersk/aeb58d5e8faead8980a807c840232697982d47b9' (2023-10-27) → 'github:nix-community/naersk/c5037590290c6c7dae2e42e7da1e247e54ed2d49' (2024-04-19) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/2fd19c8be2551a61c1ddc3d9f86d748f4db94f00' (2024-04-16) → 'github:NixOS/nixpkgs/1e1dc66fe68972a76679644a5577828b6a7e8be4' (2024-04-22) |
||
---|---|---|
.github/workflows | ||
src | ||
static | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
config.yaml | ||
flake.lock | ||
flake.nix | ||
INSTALL-UBUNTU.md | ||
LICENSE | ||
nixos-module.nix | ||
README.md |
buzzrelay
A follow-only ActivityPub relay that connects to Mastodon's Streaming API.
You don't need to run this yourself, just use the instance at relay.fedi.buzz.
Setup
See also: Notes on an setting up a fediverse relay with FediBuzz on an Ubuntu server.
Build
NixOS/Flakes users are in luck: not only does this build, it also comes with a NixOS module!
Anyone else installs a Rust toolchain to build with:
cargo build --release
Generate signing keypair
ActivityPub messages are signed using RSA keys. Generate a keypair first:
openssl genrsa -out private-key.pem 4096
openssl rsa -in private-key.pem -pubout -out public-key.pem
Let your config.yaml
point there.
Database
Create a PostgreSQL database and user, set them in your config.yaml
.
The program will create its schema on start.
Ethics
Should everyone connect to the streaming API of the big popular Mastodon instances?
Once these connections become a problem, they may become disallowed, resulting in problems for everyone. That's why fedi.buzz serves the firehose feed through the streaming API, too.
You can let this service use fedi.buzz as listed in the default
config.yaml
.