Skip to content

Instantly share code, notes, and snippets.

@unixfox
Created January 16, 2022 12:53
Show Gist options
  • Save unixfox/661b62abcc0350ca016e734249947ef7 to your computer and use it in GitHub Desktop.
Save unixfox/661b62abcc0350ca016e734249947ef7 to your computer and use it in GitHub Desktop.
Redirect to a random backend on Invidious - need openresty
location /latest_version {
set_by_lua_block $random {
return math.random(1, 2)
}
return 302 https://eu$random.proxy.yewtu.be$request_uri;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment