4d73ff430d
Flake lock file updates: • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/85f7e662eda4fa3a995556527c87b2524b691933?narHash=sha256-JwQZIGSYnRNOgDDoIgqKITrPVil%2BRMWHsZH1eE1VGN0%3D' (2024-11-07) → 'github:NixOS/nixpkgs/5083ec887760adfe12af64830a66807423a859a7?narHash=sha256-D1FNZ70NmQEwNxpSSdTXCSklBH1z2isPR84J6DQrJGs%3D' (2024-11-18) • Updated input 'utils': 'github:numtide/flake-utils/c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a?narHash=sha256-X6rJYSESBVr3hBoH0WbKE5KvhPU5bloyZ2L4K60/fPQ%3D' (2024-09-17) → 'github:numtide/flake-utils/11707dc2f618dd54ca8739b309ec4fc024de578b?narHash=sha256-l0KFg5HjrsfsO/JpG%2Br7fRrqm12kzFHyUHqHCVpMMbI%3D' (2024-11-13) |
||
---|---|---|
.github/workflows | ||
src | ||
static | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
config.yaml | ||
flake.lock | ||
flake.nix | ||
INSTALL-UBUNTU.md | ||
LICENSE | ||
nixos-module.nix | ||
README.md | ||
renovate.json |
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
.