From 7c94d0ea350b1a9120a31d2a45797842b4ea70fb Mon Sep 17 00:00:00 2001 From: b0unce Date: Tue, 10 Dec 2013 13:31:17 +0000 Subject: [PATCH] Add example configuration and update README --- README.md | 2 +- example.json | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 example.json 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