2013-09-28 02:56:52 +02:00
|
|
|
{
|
|
|
|
"device_name": "My Sync Device",
|
|
|
|
"listening_port" : 0, // 0 - randomize port
|
|
|
|
|
|
|
|
/* storage_path dir contains auxilliary app files
|
|
|
|
if no storage_path field: .sync dir created in the directory
|
|
|
|
where binary is located.
|
|
|
|
otherwise user-defined directory will be used
|
|
|
|
*/
|
2013-10-15 00:06:37 +02:00
|
|
|
"storage_path" : "/opt/btsync/storage",
|
2013-09-28 02:56:52 +02:00
|
|
|
|
|
|
|
// uncomment next line if you want to set location of pid file
|
2013-10-16 02:27:55 +02:00
|
|
|
"pid_file" : "/opt/btsync/pid/btsync.pid",
|
2013-09-28 02:56:52 +02:00
|
|
|
|
|
|
|
"check_for_updates" : true,
|
|
|
|
"use_upnp" : true, // use UPnP for port mapping
|
|
|
|
|
|
|
|
|
|
|
|
/* limits in kB/s
|
|
|
|
0 - no limit
|
|
|
|
*/
|
|
|
|
"download_limit" : 0,
|
|
|
|
"upload_limit" : 0,
|
|
|
|
|
|
|
|
/* remove "listen" field to disable WebUI
|
|
|
|
remove "login" and "password" fields to disable credentials check
|
|
|
|
*/
|
|
|
|
"webui" :
|
|
|
|
{
|
|
|
|
"listen" : "0.0.0.0:8888",
|
2013-10-14 18:16:16 +02:00
|
|
|
"login" : "",
|
|
|
|
"password" : ""
|
2013-09-28 02:56:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* !!! if you set shared folders in config file WebUI will be DISABLED !!!
|
|
|
|
shared directories specified in config file
|
|
|
|
override the folders previously added from WebUI.
|
|
|
|
*/
|
|
|
|
/*
|
|
|
|
,
|
|
|
|
"shared_folders" :
|
|
|
|
[
|
|
|
|
{
|
|
|
|
// use --generate-secret in command line to create new secret
|
|
|
|
"secret" : "MY_SECRET_1", // * required field
|
|
|
|
"dir" : "/home/user/bittorrent/sync_test", // * required field
|
|
|
|
|
|
|
|
// use relay server when direct connection fails
|
|
|
|
"use_relay_server" : true,
|
|
|
|
"use_tracker" : true,
|
|
|
|
"use_dht" : false,
|
|
|
|
"search_lan" : true,
|
|
|
|
// enable sync trash to store files deleted on remote devices
|
|
|
|
"use_sync_trash" : true,
|
|
|
|
// specify hosts to attempt connection without additional search
|
|
|
|
"known_hosts" :
|
|
|
|
[
|
|
|
|
"192.168.1.2:44444"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Advanced preferences can be added to config file.
|
|
|
|
// Info is available in BitTorrent Sync User Guide.
|
|
|
|
|
|
|
|
}
|