Mirror of fedi block api
Find a file
2022-04-22 03:42:03 +02:00
services rewrote the api in python 2022-03-31 23:13:44 +02:00
.gitignore rewrote the api in python 2022-03-31 23:13:44 +02:00
api.py API now only returns block levels that are used 2022-04-14 20:26:19 +02:00
blocks_preloaded.db changed preloaded db 2022-04-22 03:42:03 +02:00
fetch_blocks.py dont delete blocks 2022-04-16 22:43:28 +02:00
LICENSE added license 2022-03-03 17:16:06 +01:00
README.md changed spacing 2022-04-09 15:15:00 +02:00
requirements.txt added requests to requirements 2022-04-06 20:08:05 +02:00

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://gitlab.com/EnjuAihara/fedi-block-api.git /opt/fedi-block-api
cd /opt/fedi-block-api
sudo -Hu fba pip3 install -r requirements.txt
sudo -Hu fba cp blocks_preloaded.db blocks.db

Install the services

sudo cp services/* /etc/systemd/system

start the services

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

Try it out

https://chizu.love/fedi-block-api/api/domain/info

https://chizu.love/fedi-block-api/api/domain/ {domain}

License

AGPLv3+NIGGER