No description
nginx | ||
smart-ipv6-rotator@6c7286107b | ||
.env | ||
.gitmodules | ||
config.toml | ||
docker-compose.yml | ||
README.md | ||
reset.sh |
git clone --recursive
- Fill in
.env
- How do you want to connect to YouTube?
- If you want to rotate IPv6, consult
.env
- This rotates your ipv6 to bypass ratelimits. It's only effective with subnets larger than /64, the larger the better.
- You must also install
pyroute2
. It's on pypi orapt install python3-pyroute2
on debian
- If you want to use gluetun, uncomment everything below
gluetun:
and the two linesnetwork_mode
anddepends_on
- Put
wg0.conf
in the root directory
- Put
- If something else, you should know what you're doing
- If you want to rotate IPv6, consult
- Set the companion secret key in
config.toml
- cd to
nginx/
and:openssl dhparam -out dhparam.pem 3072
(takes up to a few minutes, you can do other steps in the meantime)openssl req -new -x509 -days 365 -noenc -out snakeoil.pem -keyout snakeoil.key
(keep pressing Enter)- Edit
conf.d/companion.conf
- cd back and
./reset.sh
- Issue a certificate, steps here
- Schedule
reset.sh
. This rotates your IP, updates containers, and it's generally a good practice to auto restart.
This restarts every hour:00. You can change it, if you want to. / If you have multiple companions, you should make them restart at different times.@reboot sleep 30s && cd /opt/invidious-companion/reset.sh 0 * * * * cd /opt/invidious-companion/reset.sh
TODOs:
- Automate all (well, almost) above
reset.sh
only when companion up, currently it brings up no matter what