1
0
Fork 0

Import blocklist into postgres

main
Jeff Moe 2023-01-09 10:50:15 -07:00
parent 27bf18e077
commit 3183224437
1 changed files with 19 additions and 0 deletions

View File

@ -132,6 +132,25 @@ sudo cp dist/rapidblock_dot_org.pub /opt/rapidblock/share/rapidblock-dot-org.pub
sudo cp rapidblock /opt/rapidblock/bin/rapidblock
```
I tried this to get an initial blocklist imported.
The import appeared to work, and I can see it in the
logs, but I don't see the actual list of blocked domains
in the admin interface.
```
curl -o /tmp/blocklist.json https://rapidblock.org/blocklist.json
rapidblock \
--software=mastodon-4.x \
--mode=apply \
--data-file=/tmp/blocklist.json \
--database-url="postgresql:///mastodon_production"
```
Note the database name `mastodon_production` was default for Mastodon
install, but you may have another name.
Perhaps also:
```