nyne

utserver.conf.default

Mar 2nd, 2012
1,330
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #################################
  2. # Application Settings #
  3. #################################
  4.  
  5. #Settings fall into two categories:
  6. # internal settings, whose values can only be set in the utserver.conf file;
  7. # regular settings, whose values can be set in the utserver.conf file or the /api/app-settings-set RPC API call.
  8. #A setting can be of one of three types:
  9. # string
  10. # integer
  11. # Boolean value (1 for true and 0 for false)
  12.  
  13.  
  14.  
  15. #################################
  16. # Internal Settings #
  17. #################################
  18.  
  19. #bind_ip (string):
  20. # IP address to use for socket connections. If not provided, a default IP address will be used. We do not recommend changing this value.
  21. bind_ip: ""
  22.  
  23. #ut_webui_port (integer):
  24. # Default value: 8080. Port number where the utserver process accepts HTTP RPC API calls to support the µTorrent-compatible HTTP interface. If the utserver process also serves HTML files (see webui_server_files setting), also the port of HTTP server.
  25. ut_webui_port: 8080
  26.  
  27. #token_auth_enable (boolean)
  28. # Default value: true. If true, the µTorrent HTTP interface defends against cross-site request forgeries by requiring that a short-lived token be obtained from the µTorrent HTTP interface and included at the beginning of the parameter list of any request made to that interface. If false, the µTorrent HTTP interface will not be protected in this manner.
  29. token_auth_enable: true
  30.  
  31. #dir_active (string):
  32. # Default value: "./". Directory in which currently downloaded data is saved. Can be an absolute path or a relative path. If it is a relative path, the value is relative to dir_root or the current working directory if dir_root is not defined or an empty string. It is recommended that this directory be hidden from users (i.e. not exported through Samba).
  33. dir_active: "./"
  34.  
  35. #dir_completed (string):
  36. # Default value: "". Directory where completed downloads are stored. If the value is an empty string, the value of dir_active is used. This value must represent a path that is accessible to users (e.g. exported through Samba). It also has to be on the same volume as dir_active.
  37. dir_completed: ""
  38.  
  39. #dir_download (string):
  40. # Default value: "". Optional directory where completed downloads can be stored, instead of in dir_completed. If no value is specified for this setting, the value of dir_completed is used. The value must represent a path that is accessible to users (e.g. exported through Samba).
  41. # This option can be specified multiple times in the file - once for each directory to be designated as such. This option can be used when adding torrents via the µTorrent HTTP interface, not via the SDK interface.
  42. # Use the action list-dirs to obtain a list of download directories from the µTorrent HTTP interface. Use the option download_dir to specify which of these directories to use when adding a torrent by URL or file through the µTorrent HTTP interface; specify the one-based index of the entry of interest. The index of each entry will be in order in which each entry appears in utserver.conf, starting with 1 for the first entry, 2 for the second entry, and so on. 0 indicates the default download directory should be used.
  43. dir_download: ""
  44.  
  45. #dir_torrent_files (string):
  46. # Default value: "". Directory where torrent files are stored. If the empty string, the value of dir_active is used. It is recommended that this directory be hidden from users (i.e. not exported through Samba).
  47. dir_torrent_files: ""
  48.  
  49. #dir_temp_files (string):
  50. # Default value: "". Directory where temporary files are stored. If the empty string, the value of dir_active is used. It is recommended that this directory be hidden from users (i.e. not exported through Samba). Also, using a separate directory just for temporary files allows for deleting the files in this directory on boot and/or periodically. The utserver process creates temporary files with a .utt extension - if a value for this setting is specified, the utserver process will delete all files with that extension in that directory at process startup. This setting applies only to POSIX systems. The value should specify a directory, not a symbolic link to a directory.
  51. dir_temp_files: ""
  52.  
  53. #dir_autoload (string):
  54. # Default value: "". Directory where torrent files will be recognized and auto-loaded. If the empty string, auto-load is disabled.
  55. dir_autoload: ""
  56.  
  57. #dir_autoload_delete (boolean):
  58. # Default value: false. If true, torrent files in the autoload directory will be deleted after being loaded, else they will be renamed with an extension of .loaded. The dir_autoload setting must be specified for this setting to have an effect.
  59. dir_autoload_delete: false
  60.  
  61. #dir_request (string):
  62. # Default value: "". Directory where maintenance request files will be recognized, loaded, and deleted. If the empty string, maintenance request handling is disabled. This directory should be hidden from users (i.e., not exported through Samba). Your software running on your device can create the following files in this directory in order to request the following maintenance procedures.
  63. # If the file c.utmr is created in or moved into this directory, the credentials necessary to access the µTorrent HTTP interface will be reset to username admin and a blank password.
  64. # If the file wipl.utmr is created in or moved into this directory, the IP restriction list that limits the IPs that can use the µTorrent HTTP interface is cleared, so that there will be no restrictions on IP address.
  65. # These maintenance operations provide a way to help a user who has either entered new credentials and then forgotten them, or who has entered an IP range in the restricted list and can no longer access the µTorrent HTTP interface as a result.
  66. # If the file rcf.utmr is created in or moved into this directory, the server will reload the configuration file. If you always use this method to request a configuration file reload, you can safely change the value of this setting while the server is running.
  67. # The server will also reload the configuration file if you send a hangup signal to the server; however, a race condition may occur if you send a hangup signal to the server in order to change the value of this setting. You should either only use the file system interface for requesting configuration file reloads, or you should not change the value of this setting in the configuration file before sending a hangup signal to the server.
  68. dir_request: ""
  69.  
  70. #upnp (boolean):
  71. # Default value: true. If true, UPNP functionality for mapping ports is used by utserver. We recommend setting this value to true.
  72. upnp: true
  73.  
  74. #natpmp (boolean):
  75. # If true, NAT-PMP functionality for mapping ports is used by utserver. Default value: true. We recommend setting this value to true.
  76. natpmp: true
  77.  
  78. #lsd (boolean):
  79. # Default value: true. If true, Local Service Discovery is enabled. We recommend setting this value to true.
  80. lsd: true
  81.  
  82. #dht (boolean):
  83. # Default value: true. If true, Distributed Hash Table extension is enabled. We recommend setting this value to true.
  84. dht: true
  85.  
  86. #pex (boolean):
  87. # Default value: true. If true, Peer Exchange extension is enabled. We recommend setting this value to true.
  88. pex: true
  89.  
  90. #rate_limit_local_peers (boolean):
  91. # Default value: false. If true, rate limiting also applies to communications with peers in the local subnet. We recommend setting this value to false.
  92. rate_limit_local_peers: false
  93.  
  94. #dir_root (string):
  95. # Default value: "". If not empty, dir_active, dir_completed, and dir_torrent_files are relative to this directory.
  96. dir_root: ""
  97.  
  98. #disk_cache_max_size (integer):
  99. # Default value: 0. Maximum amount of memory used by each of the read, write, and piece caches. Value is in megabytes. If 0, accepts the SDK's default choices on selecting sizes of disk caches. Maximum value is 512.
  100. # The value of this setting will be applied every time the utserver process starts.
  101. disk_cache_max_size: 0
  102.  
  103. #preferred_interface (string):
  104. # Default value: "". If defined, name of network interface to be preferred when attempting to search among network interfaces for an external IP and hardware address. If empty string, preferred interface is ignored.
  105. # You need to provide a value for this setting if either 1) the toolchain for your computer does not supply ifaddrs.h, or 2) you want the utserver process to choose a different interface than it would choose on its own. You should set a value for this setting if you see an incorrect port mapping on a UPnP router for the subnet to which the device belongs (the IP address of the device will not appear in the port mapping requested by the utserver process - instead, the IP address associated with the mapping will be 0.0.0.0 with a device having a toolchain that does not include ifaddrs.h, or some other IP address with a device having a toolchain that includes ipaddrs.h).
  106. # The value of this setting will be applied every time the utserver process starts.
  107. preferred_interface: ""
  108.  
  109. #admin_name (string):
  110. # Default value: "admin". If defined, name that must be supplied (along with the password) when authenticating to the server via the HTTP interface. This allows the administrator to define an initial non-default value for this name. This value will not be applied from utserver.conf if settings.dat already exists.
  111. admin_name: "admin"
  112.  
  113. #admin_password (string):
  114. # Default value: "". If defined, password that must be supplied (along with the name) when authenticating to the server via the HTTP interface. This allows the administrator to define an initial non-default value for this password. This value will not be applied from utserver.conf if settings.dat already exists.
  115. admin_password: ""
  116.  
  117. #logmask (integer):
  118. # Default value: 0. A mask whose bits when set allow certain categories of log messages to be generated. The value of this setting will be applied every time the utserver process starts.
  119. # The bits (0 - 31) in the value of this setting correspond to a set of internal events and subsystems. The usage of these bits may change without advance notice in a future release.
  120. # 3 - send have
  121. # 6 - hole punch
  122. # 7 - got bad piece request
  123. # 8 - trace
  124. # 9 - piece picker
  125. # 10 - got bad cancel
  126. # 11 - got bad unchoke
  127. # 12 - got bad piece
  128. # 13 - rss
  129. # 14 - rss error
  130. # 15 - got have
  131. # 16 - got bad have
  132. # 17 - error
  133. # 18 - aggregated
  134. # 19 - disconnect
  135. # 20 - out connect
  136. # 21 - in connect
  137. # 22 - UPnP
  138. # 23 - UPnP error
  139. # 24 - NATPMP
  140. # 25 - NATPMP error
  141. # 26 - metadata finish
  142. # 27 - web UI
  143. # 28 - got bad reject
  144. # 29 - pex
  145. # 30 - peer messages
  146. # 31 - blocked connect
  147. logmask: 0
  148.  
  149. #ut_webui_dir (string):
  150. # Directory where the web UI file archive webui.zip is stored, or which contains a webui subdirectory within which the unarchived web UI files are stored. It can be an absolute path or set relative to the current directory. It is recommended that this directory be hidden from users (i.e. not exported through Samba). Default value: "" (to use the same directory as settings.dat and other settings files).
  151. ut_webui_dir: ""
  152.  
  153. #finish_cmd (string), state_cmd (string):
  154. # If defined, finish_cmd is a command that will be executed upon completion of each torrent, and state_cmd is a command that will be executed when a torrent changes state. Default value: "" (no command is run for the event(s) associated with that setting).
  155. # The command is run asynchronously, so that a lengthy or hung process will not block the server. The server creates a new process group for the command, so that the server does not need to wait for it, and so the kernel process table does not fill up with zombie processes. The command is run as the same user that runs the server process.
  156. # The server permits substitutions in the command text as follows:
  157. # %F
  158. # Name of downloaded data file (for single-file torrents)
  159. # %D
  160. # directory where torrent data files are saved
  161. # %N
  162. # torrent title
  163. # %S
  164. # torrent state
  165. # %P
  166. # previous state of torrent
  167. # %L
  168. # label associated with torrent
  169. # %T
  170. # tracker
  171. # %M
  172. # status message
  173. # %I
  174. # hex-encoded info-hash
  175. # State (%S) and previous state (%P) are integers that have the following values:
  176. # 1 (error)
  177. # 2 (checked)
  178. # 3 (paused)
  179. # 4 (super seeding)
  180. # 5 (seeding)
  181. # 6 (downloading)
  182. # 7 (super seeding (forced))
  183. # 8 (seeding (forced))
  184. # 9 (downloading (forced))
  185. # 10 (queued seed)
  186. # 11 (finished)
  187. # 12 (queued)
  188. # 13 (stopped)
  189. finish_cmd: ""
  190. state_cmd: ""
  191.  
  192. #################################
  193. # Regular Settings #
  194. #################################
  195.  
  196. #bind_port (integer):
  197. # Default value: 6881. Port used for BitTorrent protocol. This can be any value in the range 1025-65000.
  198. bind_port: 6881
  199.  
  200. #max_ul_rate (integer):
  201. # Default value: -1. Maximum total upload rate in kilobytes per second. -1 means unlimited. We recommend setting it to -1.
  202. max_ul_rate: -1
  203.  
  204. #max_ul_rate_seed (integer):
  205. # Default value: -1. Maximum per-torrent upload rate when seeding, in kilobytes per second. -1 means unlimited. We recommend setting it to -1.
  206. max_ul_rate_seed: -1
  207.  
  208. #conns_per_torrent (integer):
  209. # Default value: 50. Maximum number of connections for a given torrent.
  210. conns_per_torrent: 50
  211.  
  212. #max_total_connections (integer):
  213. # Default value: 200. Maximum number of connection opened at the same time.
  214. max_total_connections: 200
  215.  
  216. #auto_bandwidth_management (boolean):
  217. # Default value: true. If true, upload bandwidth is automatically throttled in order to not impact other applications using TCP/IP.
  218. auto_bandwidth_management: true
  219.  
  220. #max_dl_rate (integer):
  221. # Default value: -1. Maximum total download rate in kilobytes per second. -1 means unlimited. We recommend setting it to -1.
  222. mad_dl_rate: -1
  223.  
  224. #seed_ratio (integer):
  225. # Default value: 0. Seed ratio in percent (%) (e.g. 100 means 100%). If not 0, seeding will stop after reaching this upload/download ratio.
  226. seed_ratio: 0
  227.  
  228. #seed_time (integer):
  229. # Default value: 0. Time after which seeding will stop, in seconds. 0 means seeding won't stop.
  230. seed_time: 0
RAW Paste Data