fedi-block-api/README.md

44 lines
863 B
Markdown
Raw Normal View History

2022-03-04 17:18:11 +00:00
# Fedi block API
Used to see which instances block yours.
## software used:
2022-03-06 13:46:43 +00:00
2022-03-04 17:18:11 +00:00
- python 3.10.2
2022-03-06 13:46:43 +00:00
## Installation
2022-03-04 17:18:11 +00:00
2022-03-06 13:46:43 +00:00
```bash
2022-03-31 17:31:34 +00:00
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.kiwifarms.net/mint/fedi-block-api.git /opt/fedi-block-api
2022-03-31 17:31:34 +00:00
cd /opt/fedi-block-api
2022-03-31 21:16:08 +00:00
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
2022-04-22 18:56:58 +00:00
sudo -Hu fba cp config.defaults.json config.json
2022-03-06 13:46:43 +00:00
```
2022-03-04 17:18:11 +00:00
2022-04-22 18:56:58 +00:00
2022-03-06 13:46:43 +00:00
### Install the services
2022-03-04 17:18:11 +00:00
2022-03-06 13:46:43 +00:00
```bash
sudo cp services/* /etc/systemd/system
2022-03-04 17:18:11 +00:00
```
2022-03-06 13:46:43 +00:00
### start the services
2022-03-04 18:25:29 +00:00
2022-03-06 13:46:43 +00:00
```bash
2022-03-31 17:31:34 +00:00
systemctl enable --now fetch_blocks
systemctl enable --now fedi_block_api
2022-03-04 18:25:29 +00:00
```
2022-03-04 17:18:11 +00:00
2022-03-11 21:43:10 +00:00
## Try it out
https://fba.ryona.agency/
2022-03-11 21:43:10 +00:00
2022-03-04 17:18:11 +00:00
## License
2022-03-11 21:43:10 +00:00
[AGPLv3+NIGGER](https://plusnigger.autism.exposed/)