fedi-block-api/README.md
2024-12-08 12:03:57 +01:00

1.9 KiB

Fedi block API

Used to see which instances block yours.

software used:

  • python 3.10.2

Installation

sudo useradd -m fba
sudo mkdir -p /opt/fedi-block-api
sudo chown -R fba:fba /opt/fedi-block-api
sudo -Hu fba git clone https://git.tudbut.de/tudbut/fedi-block-api /opt/fedi-block-api
cd /opt/fedi-block-api
sudo -Hu fba pip3 install -r requirements.txt
sudo -Hu fba cp blocks_empty.db blocks.db
sudo -Hu fba python3 fetch_instances.py mastodon.social # try a bunch of large servers here
sudo -Hu fba cp config.defaults.json config.json

Install the services

sudo cp services/* /etc/systemd/system

start the services

systemctl enable --now fetch_blocks
systemctl enable --now fedi_block_api

License

AGPLv3.

Because the original writers (who licensed it under what they call AGPLv3+N***ER (you can imagine)) did not change the actual terms of the license but merely added a statement at the bottom, without even changing the name in the license file, the license was still AGPLv3, allowing me to use "AGPL v3 or later", so I have now replaced the license with base AGPL v3.

It was also very suboptimally applied, with there being a missing copyright notice:

fedi-block-api: indexes fediverse blocks
Copyright (C) 2024  TudbuT

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

:D Have fun!