syncthing-config.5 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .TH "SYNCTHING-CONFIG" "5" "May 30, 2015" "v0.11" "Syncthing"
  4. .SH NAME
  5. syncthing-config \- Syncthing Configuration
  6. .
  7. .nr rst2man-indent-level 0
  8. .
  9. .de1 rstReportMargin
  10. \\$1 \\n[an-margin]
  11. level \\n[rst2man-indent-level]
  12. level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
  13. -
  14. \\n[rst2man-indent0]
  15. \\n[rst2man-indent1]
  16. \\n[rst2man-indent2]
  17. ..
  18. .de1 INDENT
  19. .\" .rstReportMargin pre:
  20. . RS \\$1
  21. . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
  22. . nr rst2man-indent-level +1
  23. .\" .rstReportMargin post:
  24. ..
  25. .de UNINDENT
  26. . RE
  27. .\" indent \\n[an-margin]
  28. .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
  29. .nr rst2man-indent-level -1
  30. .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
  31. .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
  32. ..
  33. .sp
  34. \fBWARNING:\fP
  35. .INDENT 0.0
  36. .INDENT 3.5
  37. This page may be outdated and requires review.
  38. Attributes have been added that are not documented.
  39. .UNINDENT
  40. .UNINDENT
  41. .SH SYNOPSIS
  42. .INDENT 0.0
  43. .INDENT 3.5
  44. .sp
  45. .nf
  46. .ft C
  47. $HOME/.config/syncthing/config.xml
  48. $HOME/Library/Application Support/Syncthing
  49. %AppData%/Syncthing
  50. %localappdata%/Syncthing
  51. .ft P
  52. .fi
  53. .UNINDENT
  54. .UNINDENT
  55. .SH DESCRIPTION
  56. .sp
  57. Syncthing uses a single directory to store configuration, crypto keys
  58. and index caches. The location defaults to \fB$HOME/.config/syncthing\fP
  59. (Unix\-like), \fB$HOME/Library/Application Support/Syncthing\fP (Mac),
  60. \fB%AppData%/Syncthing\fP (Windows XP) or \fB%localappdata%/Syncthing\fP
  61. (Windows 7/8). It can be changed at runtime using the \fB\-home\fP flag. In this
  62. directory the following files are located:
  63. .INDENT 0.0
  64. .TP
  65. .B cert.pem
  66. The device\(aqs RSA public key, named "cert" for legacy reasons.
  67. .TP
  68. .B key.pem
  69. The device\(aqs RSA private key. This needs to be protected.
  70. .TP
  71. .B config.xml
  72. The configuration file, in XML format.
  73. .TP
  74. .B https\-cert.pem
  75. The certificate for HTTPS GUI connections.
  76. .TP
  77. .B https\-key.pem
  78. The key for HTTPS GUI connections.
  79. .TP
  80. .B index/
  81. A directory holding the database with metadata and hashes of the files
  82. currently on disk and available from peers.
  83. .TP
  84. .B csrftokens.txt
  85. A list of recently issued CSRF tokens (for protection against browser cross
  86. site request forgery).
  87. .UNINDENT
  88. .SH CONFIG FILE FORMAT
  89. .sp
  90. The following is shows the default configuration file:
  91. .INDENT 0.0
  92. .INDENT 3.5
  93. .sp
  94. .nf
  95. .ft C
  96. <configuration version="2">
  97. <folder id="default" directory="/Users/jb/Sync" ro="false" ignorePerms="false">
  98. <device id="GXN5ECCWTA2B7EB5FXYL5OWGOADX5EF5VNJAQSIBAY6XHJ24BNOA"></device>
  99. </folder>
  100. <device id="GXN5ECCWTA2B7EB5FXYL5OWGOADX5EF5VNJAQSIBAY6XHJ24BNOA" name="jborg\-mbp">
  101. <address>dynamic</address>
  102. </device>
  103. <gui enabled="true" tls="true">
  104. <address>127.0.0.1:54096</address>
  105. <user>jb</user>
  106. <password>$2a$10$EKaTIcpz2...</password>
  107. <apikey>O80CDOJ9LVUVCMHFK2OJDO4T882735</apikey>
  108. </gui>
  109. <options>
  110. <listenAddress>:54097</listenAddress>
  111. <globalAnnounceServer>announce.syncthing.net:22025</globalAnnounceServer>
  112. <globalAnnounceEnabled>true</globalAnnounceEnabled>
  113. <localAnnounceEnabled>true</localAnnounceEnabled>
  114. <parallelRequests>16</parallelRequests>
  115. <maxSendKbps>0</maxSendKbps>
  116. <rescanIntervalS>60</rescanIntervalS>
  117. <reconnectionIntervalS>60</reconnectionIntervalS>
  118. <maxChangeKbps>10000</maxChangeKbps>
  119. <startBrowser>true</startBrowser>
  120. <upnpEnabled>true</upnpEnabled>
  121. <urAccepted>0</urAccepted>
  122. </options>
  123. </configuration>
  124. .ft P
  125. .fi
  126. .UNINDENT
  127. .UNINDENT
  128. .SS configuration
  129. .sp
  130. This is the root element.
  131. .INDENT 0.0
  132. .TP
  133. .B version
  134. The config version. The current version is \fB2\fP\&.
  135. .UNINDENT
  136. .SS folder
  137. .sp
  138. One or more \fBfolder\fP elements must be present in the file. Each
  139. element describes one folder.
  140. .sp
  141. Within the \fBfolder\fP element one or more \fBdevice\fP element should be
  142. present. These must contain the \fBid\fP attribute and nothing else.
  143. Mentioned devices are those that will be sharing the folder in question.
  144. Each mentioned device must have a separate \fBdevice\fP element later in
  145. the file. It is customary that the local device ID is included in all
  146. repositories. Syncthing will currently add this automatically if it is
  147. not present in the configuration file.
  148. .INDENT 0.0
  149. .TP
  150. .B id
  151. The folder ID, must be unique. (mandatory)
  152. .TP
  153. .B directory
  154. The directory where the folder is stored on this
  155. device; not sent to other devices. (mandatory)
  156. .TP
  157. .B ro
  158. True if the folder is read only (will not be modified by Syncthing) on this
  159. device. (optional, defaults to \fBfalse\fP)
  160. .TP
  161. .B ignorePerms
  162. True if the folder should \fI\%ignore permissions\fP <\fBhttp://forum.syncthing.net/t/263\fP>\&.
  163. .UNINDENT
  164. .SS device
  165. .sp
  166. One or more \fBdevice\fP elements must be present in the file. Each
  167. element describes a device participating in the cluster. It is customary
  168. to include a \fBdevice\fP element for the local device; Syncthing will
  169. currently add one if it is not present.
  170. .INDENT 0.0
  171. .TP
  172. .B id
  173. The device ID. This must be written in canonical form, that is without any
  174. spaces or dashes. (mandatory)
  175. .TP
  176. .B name
  177. A friendly name for the device. (optional)
  178. .TP
  179. .B address
  180. The address section is only valid inside of \fBdevice\fP elements. It contains
  181. a single address, on one of the following forms:
  182. .INDENT 7.0
  183. .IP \(bu 2
  184. IPv4 addresses, IPv6 addresses within brackets, or DNS names, all
  185. optionally followed by a port number.
  186. .IP \(bu 2
  187. \fBdynamic\fP: The address will be resolved using discovery.
  188. .UNINDENT
  189. .UNINDENT
  190. .SS gui
  191. .sp
  192. There must be \fIexactly one\fP \fBgui\fP element.
  193. .INDENT 0.0
  194. .TP
  195. .B enabled
  196. \fBtrue\fP/\fBfalse\fP
  197. .TP
  198. .B tls
  199. \fBtrue\fP/\fBfalse\fP: If true then the GUI will use HTTPS.
  200. .TP
  201. .B address
  202. One or more address elements must be present, containing an \fBip:port\fP
  203. listen address.
  204. .TP
  205. .B username
  206. Set to require authentication.
  207. .TP
  208. .B password
  209. Contains the bcrypt hash of the real password.
  210. .TP
  211. .B apikey
  212. If set, this is the API key that enables usage of the REST interface.
  213. .UNINDENT
  214. .sp
  215. Additionally, there must be \fIexactly one\fP \fBoptions\fP element. It contains the
  216. following configuration settings as children:
  217. .INDENT 0.0
  218. .TP
  219. .B listenAddress
  220. \fBhost:port\fP or \fB:port\fP string denoting an address to listen for BEP
  221. connections. More than one \fBlistenAddress\fP may be given.
  222. (default: \fB0.0.0.0:22000\fP)
  223. .TP
  224. .B globalAnnounceServer
  225. \fBhost:port\fP string denoting where a global announce server may be
  226. reached. (default: \fBannounce.syncthing.net:22025\fP)
  227. .TP
  228. .B globalAnnounceEnabled
  229. \fBtrue\fP/\fBfalse\fP (default: \fBtrue\fP)
  230. .TP
  231. .B localAnnounceEnabled
  232. \fBtrue\fP/\fBfalse\fP (default: \fBtrue\fP)
  233. .TP
  234. .B parallelRequests
  235. The maximum number of outstanding block requests to have against any given
  236. peer. (default: \fB16\fP)
  237. .TP
  238. .B maxSendKbps
  239. Rate limit
  240. .TP
  241. .B rescanIntervalS
  242. The number of seconds to wait between each scan for modification of the
  243. local repositories. A value of \fB0\fP disables the scanner. (default: \fB60\fP)
  244. .TP
  245. .B reconnectionIntervalS
  246. The number of seconds to wait between each attempt to connect to currently
  247. unconnected devices. (default: \fB60\fP)
  248. .TP
  249. .B maxChangeKbps
  250. The maximum rate of change allowed for a single file. When this rate is
  251. exceeded, further changes to the file are not announced, until the rate is
  252. reduced below the limit. (default: \fB10000\fP)
  253. .TP
  254. .B startBrowser
  255. \fBtrue\fP/\fBfalse\fP (default: \fBtrue\fP)
  256. .TP
  257. .B upnpEnabled
  258. \fBtrue\fP/\fBfalse\fP (default: \fBtrue\fP)
  259. .TP
  260. .B urAccepted
  261. Whether the user as accepted to submit anonymous usage data. The default,
  262. \fB0\fP, mean the user has not made a choice, and Syncthing will ask at some
  263. point in the future. \fB\-1\fP means no, \fB1\fP means yes.
  264. .UNINDENT
  265. .SH AUTHOR
  266. The Syncthing Authors
  267. .SH COPYRIGHT
  268. 2015, The Syncthing Authors
  269. .\" Generated by docutils manpage writer.
  270. .