23 Star 57 Fork 15

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: *.*.*.*:*
}
C
1
https://gitee.com/hotmocha/sbalance.git
git@gitee.com:hotmocha/sbalance.git
hotmocha
sbalance
sbalance
master

搜索帮助