This repository has been archived on 2023-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Astro 2b104eb71c Cargo.lock: update 2023-04-15 23:51:08 +02:00
src endpoint: fix content-type parsing 2023-04-15 23:46:58 +02:00
static static/index.html: link source 2023-01-11 19:39:48 +01:00
.gitignore README: init 2023-01-11 19:41:48 +01:00
Cargo.lock Cargo.lock: update 2023-04-15 23:51:08 +02:00
Cargo.toml actor: normalize unicode away for TagRelay 2023-03-03 02:19:48 +01:00
LICENSE LICENSE: add 2023-01-11 19:39:39 +01:00
README.md README: init 2023-01-11 19:41:48 +01:00
config.yaml add support for multiple streams 2023-01-11 18:47:36 +01:00
flake.lock flake.lock: Update 2023-04-15 22:28:26 +02:00
flake.nix nix: install static 2022-12-23 18:22:12 +01:00
nixos-module.nix Fix eval 2023-01-16 00:04:52 +01:00

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

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.