Add example configuration and update README

This commit is contained in:
b0unce 2013-12-10 13:31:17 +00:00
parent 181f241f79
commit 7c94d0ea35
2 changed files with 26 additions and 1 deletions

View file

@ -38,7 +38,7 @@ $ go get github.com/chihaya/chihaya
Configuration is done in a JSON formatted file specified with the `-config`
flag. An example configuration file can be found
[here](https://github.com/chihaya/chihaya/blob/master/config/example.json).
[here](https://github.com/chihaya/chihaya/blob/master/example.json).
### Running the tests

25
example.json Normal file
View file

@ -0,0 +1,25 @@
{
"network": "tcp",
"addr": ":34000",
"tracker": {
"driver": "redis",
"network": "tcp",
"host": "127.0.0.1",
"port": "6379",
"user": "root",
"pass": "",
"prefix": "test:",
"max_idle_conns": 3,
"idle_timeout": "240s"
},
"private": true,
"freeleech": false,
"announce": "30m",
"min_announce": "15m",
"read_timeout": "20s",
"default_num_want": 50
}