peertube-instance-index-filter/README.md

31 lines
1.7 KiB
Markdown
Raw Normal View History

2025-06-18 19:52:46 +03:00
# Peertube instance index filter
By using global index of instances and auto-subscribing there are problem by removing from your instance following because it comes back after next sync.
This filter is middleware to collect removed instances and list global index without them
## Commands
App can be called directly and do management in console.
2025-06-20 19:04:57 +03:00
- `peertube-instance-index-filter -command index -url https://instances.joinpeertube.org/api/v1/instances/hosts -instance-url https://instances.joinpeertube.org/api/v1/instances` - add url to index of hosts. Later it will be used to collect instances
- `peertube-instance-index-filter -command collect` - collect instances from index of hosts urls
- `peertube-instance-index-filter -command reject -host www.example.com` - reject instance from index to exclude it from global index
2025-06-23 13:45:56 +03:00
- `peertube-instance-index-filter -command audit -filter dead` - go through not rejected instances and check by filters: dead, duplicates
## Links
2025-06-23 08:37:39 +03:00
- `/` - some html information about this filter and stats
2025-06-19 07:48:03 +03:00
- `/instances` - list of instances in json format with more information. Supports pagination, filter by instance creation date: `?start=3&count=100&since=2024-01-10`. Sorted by descending creation date. Also it can be used as search by host: `?search=www.example.com`
- `/instances/hosts` - list of hosts in json format. Supports pagination, filter by instance creation date: `?start=3&count=100&since=2024-01-10`. Sorted by descending creation date
## Setup
Added docker files as example. See `/docker` folder.
2025-06-22 20:42:02 +03:00
`./instances-joinpeertube.db` is prepared datebase from *instances.joinpeertube.org* on 2025-06-20. It can be copied to `./instances.db` to be used.
## License
GPLv3