https://quay.io/repository/unixfox/refresh-botguard-token-youtube
- Run a redis server
- Apply two patches in invidious
- https://github.com/yewtudotbe/invidious-custom/blob/master/patches/010-use-redis-for-video-cache.patch
- https://github.com/yewtudotbe/invidious-custom/blob/master/patches/022-potoken.patch
- Configure invidious to use redis (redis_url in config.yaml) and configure the program to use redis too using env REDIS_URL
- Launch the program periodically (every 10 minutes).
- Launch invidious