Created
January 16, 2022 12:53
-
-
Save unixfox/661b62abcc0350ca016e734249947ef7 to your computer and use it in GitHub Desktop.
Redirect to a random backend on Invidious - need openresty
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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