openresty-config/configs/debug-upstreams.conf
2025-02-12 00:52:56 -03:00

23 lines
No EOL
995 B
Text

# DEVELOPMENT
# upstream inv-debug {
# server 127.0.0.1:10060;
# server 127.0.0.1:10070;
# server 127.0.0.1:10080;
# server 127.0.0.1:20100;
# balancer_by_lua_block {
# local sticky = require "stickydebug"
# local servers = {
# { "127.0.0.1", 10060, weight = 1, max_fails = 3, fail_timeout = 30, fail_count = 0, last_fail_time = 0 },
# { "127.0.0.1", 10070, weight = 1, max_fails = 3, fail_timeout = 30, fail_count = 0, last_fail_time = 0 },
# { "127.0.0.1", 10080, weight = 1, max_fails = 3, fail_timeout = 30, fail_count = 0, last_fail_time = 0 },
# { "127.0.0.1", 20100, weight = 1, max_fails = 3, fail_timeout = 30, fail_count = 0, last_fail_time = 0 },
# { "127.0.0.1", 20200, weight = 1, max_fails = 3, fail_timeout = 30, fail_count = 0, last_fail_time = 0 },
# }
# sticky.run(servers, "invidious-debug", "clearnet");
# }
# }
# upstream http3-ytproxy-debug {
# server 127.0.0.1:10078;
# server 127.0.0.1:10080;
# }