mirror of
https://github.com/sot-tech/mochi.git
synced 2026-04-27 16:10:00 -07:00
stats test, add/remove torrent handlers, init batter driver
This commit is contained in:
36
config/example.json
Normal file
36
config/example.json
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
|
||||
"network": "tcp",
|
||||
"addr": ":80",
|
||||
|
||||
"cache": {
|
||||
"driver": "redis",
|
||||
"host": "127.0.0.1",
|
||||
"port": "6379",
|
||||
"user": "root",
|
||||
"pass": "",
|
||||
"prefix": "test:",
|
||||
|
||||
"max_idle_conn": 3,
|
||||
"idle_timeout": "240s"
|
||||
},
|
||||
|
||||
"storage": {
|
||||
"driver": "batter",
|
||||
"host": "127.0.0.1",
|
||||
"port": "5432",
|
||||
"user": "postgres",
|
||||
"pass": ""
|
||||
},
|
||||
|
||||
"private": true,
|
||||
"freeleech": false,
|
||||
|
||||
"announce": "30m",
|
||||
"min_announce": "15m",
|
||||
"read_timeout": "20s",
|
||||
"default_num_want": 50,
|
||||
|
||||
"tx_retries": 3
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user