1 Star 1 Fork 15

lihuaib/sbalance

forked from hotmocha/sbalance 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
sb.conf 995 Bytes
一键复制 编辑 原始数据 按行查看 历史
# 1. comment line with # start
# 2. ip address may have wildcard characters, '*': 0-255, '[x-y]': x and y should number from 0-255
# 3. port allow '*', but not allow '[x-y]'
# 4. specially, listen address, ip can be '*.*.*.*' which listen all system's ip, but port not alow any whilcard characters
# 5. timeout scale: ms, s(lowercase character) and not allow 0.5s, just write 500ms
# 6. rule name follow by rule tag and split by '-', max len 50 characters
# 7. rule name max len 50 characters
# 8. balance:rr
# 9. httpproxy
#sougou: { 210.51.12.173:80, 210.51.12.173:80 }
#tencent: { 115.236.148.160:80 }
accept_delay:2000ms
mode:httpproxy
workers:2
#rule-localhost
#{
# connect_timeout: 2000ms
# keepalive_timeout: 500ms
# listen: *.*.*.*:8882
# client: *.*.*.*:*
# balance: rr
# server
# {
# 127.0.0.1:80
# }
#}
rule-httpproxy
{
connect_timeout: 1000ms
keepalive_timeout: 500ms
listen: *.*.*.*:8882
client: *.*.*.*:*
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lihuaib/sbalance.git
git@gitee.com:lihuaib/sbalance.git
lihuaib
sbalance
sbalance
master

搜索帮助