diff --git a/README.md b/README.md index cecc926..f0183eb 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/example.json b/example.json new file mode 100644 index 0000000..3675729 --- /dev/null +++ b/example.json @@ -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 +} \ No newline at end of file