Advertisement
Guest User

Untitled

a guest
May 27th, 2015
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.29 KB | None | 0 0
  1. {
  2. "device_name": "Home Desktop",
  3. "listening_port" : 0, // 0 - randomize port
  4.  
  5. /* storage_path dir contains auxilliary app files if no storage_path field: .sync dir created in the directory
  6. where binary is located. otherwise user-defined directory will be used */
  7. "storage_path" : "~/.btsync",
  8.  
  9. /* set location of pid file */
  10. // "pid_file" : "/var/run/btsync/btsync.pid",
  11.  
  12. /* use UPnP for port mapping */
  13. "use_upnp" : true,
  14.  
  15. /* limits in kB/s. 0 - no limit */
  16. "download_limit" : 0,
  17. "upload_limit" : 0,
  18.  
  19. /* proxy configuration */
  20. // "proxy_type" : "socks4", // Valid types: "socks4", "socks5", "http_connect". Any other value means no proxy
  21. // "proxy_addr" : "192.168.1.2", // IP address of proxy server.
  22. // "proxy_port" : 1080,
  23. // "proxy_auth" : false, // Use authentication for proxy. Note: only username/password for socks5 (RFC 1929) is supported, and it is not really secure
  24. // "proxy_username" : "user",
  25. // "proxy_password" : "password",
  26.  
  27. "webui" :
  28. {
  29. "listen" : "0.0.0.0:8888" // remove field to disable WebUI
  30.  
  31. /* preset credentials. Use password or password_hash */
  32. // ,"login" : "admin"
  33. // ,"password" : "password"
  34. // ,"password_hash" : "some_hash" // password hash in crypt(3) format
  35. // ,"allow_empty_password" : false // Defaults to true
  36. /* ssl configuration */
  37. // ,"force_https" : true // disable http
  38. // ,"ssl_certificate" : "/path/to/cert.pem"
  39. // ,"ssl_private_key" : "/path/to/private.key"
  40.  
  41. /* directory_root path defines where the WebUI Folder browser starts (linux only). Default value is / */
  42. // ,"directory_root" : "/home/user/MySharedFolders/"
  43.  
  44. /* directory_root_policy defines how directory_root is used (linux only).
  45. Valid values are:
  46. "all" - accepts directory_root and its subdirectories for 'getdir' and 'adddir' actions
  47. "belowroot" - accepts directory_root's subdirectories for 'getdir' and 'adddir' actions,
  48. but denies attempts to use 'adddir' to create directories directly within directory_root
  49. Default value is "all". */
  50. // ,"directory_root_policy" : "all"
  51.  
  52. /* dir_whitelist defines which directories can be shown to user or have folders added (linux only)
  53. relative paths are relative to directory_root setting */
  54. // ,"dir_whitelist" : [ "/home/user/MySharedFolders/personal", "work" ]
  55. }
  56.  
  57. /* !!! if you set shared folders in config file WebUI will be DISABLED !!!
  58. shared directories specified in config file override the folders previously added from WebUI. */
  59. /*,
  60. "shared_folders" :
  61. [
  62. {
  63. "secret" : "MY_SECRET_1", // required field - use --generate-secret in command line to create new secret
  64. "dir" : "/home/user/bittorrent/sync_test", // * required field
  65. "use_relay_server" : true, // use relay server when direct connection fails
  66. "use_tracker" : true,
  67. "use_dht" : false,
  68. "search_lan" : true,
  69. "use_sync_trash" : true, // enable SyncArchive to store files deleted on remote devices
  70. "overwrite_changes" : false, // restore modified files to original version, ONLY for Read-Only folders
  71. "known_hosts" : // specify hosts to attempt connection without additional search
  72. [
  73. "192.168.1.2:44444"
  74. ]
  75. }
  76. ]
  77. */
  78.  
  79. /* Advanced preferences can be added to config file. Info is available at http://sync-help.bittorrent.com */
  80.  
  81. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement