syncthing-config.5 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .TH "SYNCTHING-CONFIG" "5" "December 11, 2016" "v0.14" "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. .SH SYNOPSIS
  34. .INDENT 0.0
  35. .INDENT 3.5
  36. .sp
  37. .nf
  38. .ft C
  39. $HOME/.config/syncthing
  40. $HOME/Library/Application Support/Syncthing
  41. %AppData%/Syncthing
  42. %localappdata%/Syncthing
  43. .ft P
  44. .fi
  45. .UNINDENT
  46. .UNINDENT
  47. .SH DESCRIPTION
  48. .sp
  49. Syncthing uses a single directory to store configuration, crypto keys
  50. and index caches. The location defaults to \fB$HOME/.config/syncthing\fP
  51. (Unix\-like), \fB$HOME/Library/Application Support/Syncthing\fP (Mac),
  52. \fB%AppData%/Syncthing\fP (Windows XP) or \fB%LocalAppData%/Syncthing\fP
  53. (Windows 7+). It can be changed at runtime using the \fB\-home\fP flag. In this
  54. directory the following files are located:
  55. .INDENT 0.0
  56. .TP
  57. .B \fBconfig.xml\fP
  58. The configuration file, in XML format.
  59. .TP
  60. .B \fBcert.pem\fP, \fBkey.pem\fP
  61. The device\(aqs RSA public and private key. These form the basis for the
  62. device ID. The key must be kept private.
  63. .TP
  64. .B \fBhttps\-cert.pem\fP, \fBhttps\-key.pem\fP
  65. The certificate and key for HTTPS GUI connections. These may be replaced
  66. with a custom certificate for HTTPS as desired.
  67. .TP
  68. .B \fBindex\-\fP\fI*\fP\fB\&.db\fP
  69. A directory holding the database with metadata and hashes of the files
  70. currently on disk and available from peers.
  71. .TP
  72. .B \fBcsrftokens.txt\fP
  73. A list of recently issued CSRF tokens (for protection against browser cross
  74. site request forgery).
  75. .UNINDENT
  76. .SH CONFIG FILE FORMAT
  77. .sp
  78. The following shows an example of the default configuration file (IDs will differ):
  79. .INDENT 0.0
  80. .INDENT 3.5
  81. .sp
  82. .nf
  83. .ft C
  84. <configuration version="14">
  85. <folder id="zj2AA\-q55a7" label="Default Folder (zj2AA\-q55a7)" path="/Users/jb/Sync/" type="readwrite" rescanIntervalS="60" ignorePerms="false" autoNormalize="true">
  86. <device id="3LT2GA5\-CQI4XJM\-WTZ264P\-MLOGMHL\-MCRLDNT\-MZV4RD3\-KA745CL\-OGAERQZ"></device>
  87. <minDiskFreePct>1</minDiskFreePct>
  88. <versioning></versioning>
  89. <copiers>0</copiers>
  90. <pullers>0</pullers>
  91. <hashers>0</hashers>
  92. <order>random</order>
  93. <ignoreDelete>false</ignoreDelete>
  94. <scanProgressIntervalS>0</scanProgressIntervalS>
  95. <pullerSleepS>0</pullerSleepS>
  96. <pullerPauseS>0</pullerPauseS>
  97. <maxConflicts>\-1</maxConflicts>
  98. <disableSparseFiles>false</disableSparseFiles>
  99. <disableTempIndexes>false</disableTempIndexes>
  100. <fsync>false</fsync>
  101. </folder>
  102. <device id="3LT2GA5\-CQI4XJM\-WTZ264P\-MLOGMHL\-MCRLDNT\-MZV4RD3\-KA745CL\-OGAERQZ" name="syno" compression="metadata" introducer="false">
  103. <address>dynamic</address>
  104. </device>
  105. <gui enabled="true" tls="false">
  106. <address>127.0.0.1:8384</address>
  107. <apikey>k1dnz1Dd0rzTBjjFFh7CXPnrF12C49B1</apikey>
  108. <theme>default</theme>
  109. </gui>
  110. <options>
  111. <listenAddress>default</listenAddress>
  112. <globalAnnounceServer>default</globalAnnounceServer>
  113. <globalAnnounceEnabled>true</globalAnnounceEnabled>
  114. <localAnnounceEnabled>true</localAnnounceEnabled>
  115. <localAnnouncePort>21027</localAnnouncePort>
  116. <localAnnounceMCAddr>[ff12::8384]:21027</localAnnounceMCAddr>
  117. <maxSendKbps>0</maxSendKbps>
  118. <maxRecvKbps>0</maxRecvKbps>
  119. <reconnectionIntervalS>60</reconnectionIntervalS>
  120. <relaysEnabled>true</relaysEnabled>
  121. <relayReconnectIntervalM>10</relayReconnectIntervalM>
  122. <startBrowser>true</startBrowser>
  123. <natEnabled>true</natEnabled>
  124. <natLeaseMinutes>60</natLeaseMinutes>
  125. <natRenewalMinutes>30</natRenewalMinutes>
  126. <natTimeoutSeconds>10</natTimeoutSeconds>
  127. <urAccepted>0</urAccepted>
  128. <urUniqueID></urUniqueID>
  129. <urURL>https://data.syncthing.net/newdata</urURL>
  130. <urPostInsecurely>false</urPostInsecurely>
  131. <urInitialDelayS>1800</urInitialDelayS>
  132. <restartOnWakeup>true</restartOnWakeup>
  133. <autoUpgradeIntervalH>12</autoUpgradeIntervalH>
  134. <keepTemporariesH>24</keepTemporariesH>
  135. <cacheIgnoredFiles>false</cacheIgnoredFiles>
  136. <progressUpdateIntervalS>5</progressUpdateIntervalS>
  137. <symlinksEnabled>true</symlinksEnabled>
  138. <limitBandwidthInLan>false</limitBandwidthInLan>
  139. <minHomeDiskFreePct>1</minHomeDiskFreePct>
  140. <releasesURL>https://api.github.com/repos/syncthing/syncthing/releases?per_page=30</releasesURL>
  141. <overwriteRemoteDeviceNamesOnConnect>false</overwriteRemoteDeviceNamesOnConnect>
  142. <tempIndexMinBlocks>10</tempIndexMinBlocks>
  143. </options>
  144. </configuration>
  145. .ft P
  146. .fi
  147. .UNINDENT
  148. .UNINDENT
  149. .SH CONFIGURATION ELEMENT
  150. .sp
  151. This is the root element.
  152. .INDENT 0.0
  153. .TP
  154. .B version
  155. The config version. Increments whenever a change is made that requires
  156. migration from previous formats.
  157. .UNINDENT
  158. .SH FOLDER ELEMENT
  159. .INDENT 0.0
  160. .INDENT 3.5
  161. .sp
  162. .nf
  163. .ft C
  164. <folder id="zj2AA\-q55a7" label="Default Folder (zj2AA\-q55a7)" path="/Users/jb/Sync/" type="readwrite" rescanIntervalS="60" ignorePerms="false" autoNormalize="true" ro="false">
  165. <device id="3LT2GA5\-CQI4XJM\-WTZ264P\-MLOGMHL\-MCRLDNT\-MZV4RD3\-KA745CL\-OGAERQZ" introducedBy="2CYF2WQ\-AKZO2QZ\-JAKWLYD\-AGHMQUM\-BGXUOIS\-GYILW34\-HJG3DUK\-LRRYQAR"></device>
  166. <minDiskFreePct>1</minDiskFreePct>
  167. <versioning></versioning>
  168. <copiers>0</copiers>
  169. <pullers>0</pullers>
  170. <hashers>0</hashers>
  171. <order>random</order>
  172. <ignoreDelete>false</ignoreDelete>
  173. <scanProgressIntervalS>0</scanProgressIntervalS>
  174. <pullerSleepS>0</pullerSleepS>
  175. <pullerPauseS>0</pullerPauseS>
  176. <maxConflicts>\-1</maxConflicts>
  177. <disableSparseFiles>false</disableSparseFiles>
  178. <disableTempIndexes>false</disableTempIndexes>
  179. <fsync>false</fsync>
  180. </folder>
  181. .ft P
  182. .fi
  183. .UNINDENT
  184. .UNINDENT
  185. .sp
  186. One or more \fBfolder\fP elements must be present in the file. Each element
  187. describes one folder. The following attributes may be set on the \fBfolder\fP
  188. element:
  189. .INDENT 0.0
  190. .TP
  191. .B id
  192. The folder ID, must be unique. (mandatory)
  193. .TP
  194. .B label
  195. The label of a folder is a human readable and descriptive local name. May
  196. be different on each device, empty, and/or identical to other folder
  197. labels. (optional)
  198. .TP
  199. .B path
  200. The path to the directory where the folder is stored on this
  201. device; not sent to other devices. (mandatory)
  202. .TP
  203. .B type
  204. Controls how the folder is handled by Syncthing. Possible values are:
  205. .INDENT 7.0
  206. .TP
  207. .B readwrite
  208. The folder is in default mode. Sending local and accepting remote changes.
  209. .TP
  210. .B readonly
  211. The folder is in "master" mode \-\- it will not be modified by
  212. Syncthing on this device.
  213. .UNINDENT
  214. .TP
  215. .B rescanIntervalS
  216. The rescan interval, in seconds. Can be set to zero to disable when external
  217. plugins are used to trigger rescans.
  218. .TP
  219. .B ignorePerms
  220. True if the folder should ignore permissions.
  221. .TP
  222. .B autoNormalize
  223. Automatically correct UTF\-8 normalization errors found in file names.
  224. .UNINDENT
  225. .sp
  226. The following child elements may exist:
  227. .INDENT 0.0
  228. .TP
  229. .B device
  230. These must have the \fBid\fP attribute and can have an \fBintroducedBy\fP attribute,
  231. identifying the device that introduced us to share this folder with the given device.
  232. If the original introducer unshares this folder with this device, our device will follow
  233. and unshare the folder (subject to skipIntroductionRemovals being false on the introducer device).
  234. All mentioned devices are those that will be sharing the folder in question.
  235. Each mentioned device must have a separate \fBdevice\fP element later in the file.
  236. It is customary that the local device ID is included in all folders.
  237. Syncthing will currently add this automatically if it is not present in
  238. the configuration file.
  239. .TP
  240. .B minDiskFreePct
  241. The percentage of space that should be available on the disk this folder
  242. resides. The folder will be stopped when the percentage of free space goes
  243. below the threshold. Set to zero to disable.
  244. .TP
  245. .B versioning
  246. Specifies a versioning configuration.
  247. .UNINDENT
  248. .sp
  249. \fBSEE ALSO:\fP
  250. .INDENT 0.0
  251. .INDENT 3.5
  252. versioning
  253. .UNINDENT
  254. .UNINDENT
  255. .INDENT 0.0
  256. .TP
  257. .B copiers, pullers, hashers
  258. The number of copier, puller and hasher routines to use, or zero for the
  259. system determined optimum. These are low level performance options for
  260. advanced users only; do not change unless requested to or you\(aqve actually
  261. read and understood the code yourself. :)
  262. .TP
  263. .B order
  264. The order in which needed files should be pulled from the cluster.
  265. The possibles values are:
  266. .INDENT 7.0
  267. .TP
  268. .B random
  269. Pull files in random order. This optimizes for balancing resources among
  270. the devices in a cluster.
  271. .TP
  272. .B alphabetic
  273. Pull files ordered by file name alphabetically.
  274. .TP
  275. .B smallestFirst, largestFirst
  276. Pull files ordered by file size; smallest and largest first respectively.
  277. .TP
  278. .B oldestFirst, newestFirst
  279. Pull files ordered by modification time; oldest and newest first
  280. respectively.
  281. .UNINDENT
  282. .TP
  283. .B ignoreDelete
  284. When set to true, this device will pretend not to see instructions to
  285. delete files from other devices.
  286. .TP
  287. .B scanProgressIntervalS
  288. The interval with which scan progress information is sent to the GUI. Zero
  289. means the default value (two seconds).
  290. .TP
  291. .B pullerSleepS, pullerPauseS
  292. Tweaks for rate limiting the puller. Don\(aqt change these unless you know
  293. what you\(aqre doing.
  294. .TP
  295. .B maxConflicts
  296. The maximum number of conflict copies to keep around for any given file.
  297. The default, \-1, means an unlimited number. Setting this to zero disables
  298. conflict copies altogether.
  299. .TP
  300. .B disableSparseFiles
  301. By default, blocks containing all zeroes are not written, causing files
  302. to be sparse on filesystems that support the concept. When set to true,
  303. sparse files will not be created.
  304. .TP
  305. .B disableTempIndexes
  306. By default, devices exchange information about blocks available in
  307. transfers that are still in progress. When set to true, such information
  308. is not exchanged for this folder.
  309. .TP
  310. .B fsync
  311. Transfer updated (from other devices) files to permanent storage before
  312. committing the changes to the internal database.
  313. .UNINDENT
  314. .SH DEVICE ELEMENT
  315. .INDENT 0.0
  316. .INDENT 3.5
  317. .sp
  318. .nf
  319. .ft C
  320. <device id="5SYI2FS\-LW6YAXI\-JJDYETS\-NDBBPIO\-256MWBO\-XDPXWVG\-24QPUM4\-PDW4UQU" name="syno" compression="metadata" introducer="false" introducedBy="2CYF2WQ\-AKZO2QZ\-JAKWLYD\-AGHMQUM\-BGXUOIS\-GYILW34\-HJG3DUK\-LRRYQAR">
  321. <address>dynamic</address>
  322. </device>
  323. <device id="2CYF2WQ\-AKZO2QZ\-JAKWLYD\-AGHMQUM\-BGXUOIS\-GYILW34\-HJG3DUK\-LRRYQAR" name="syno local" compression="metadata" introducer="false">
  324. <address>tcp://192.0.2.1:22001</address>
  325. </device>
  326. .ft P
  327. .fi
  328. .UNINDENT
  329. .UNINDENT
  330. .sp
  331. One or more \fBdevice\fP elements must be present in the file. Each element
  332. describes a device participating in the cluster. It is customary to include a
  333. \fBdevice\fP element for the local device; Syncthing will currently add one if
  334. it is not present. The following attributes may be set on the \fBdevice\fP
  335. element:
  336. .INDENT 0.0
  337. .TP
  338. .B id
  339. The device ID. This must be written in canonical form, that is without any
  340. spaces or dashes. (mandatory)
  341. .TP
  342. .B name
  343. A friendly name for the device. (optional)
  344. .TP
  345. .B compression
  346. Whether to use protocol compression when sending messages to this device.
  347. The possible values are:
  348. .INDENT 7.0
  349. .TP
  350. .B metadata
  351. Compress metadata packets, such as index information. Metadata is
  352. usually very compression friendly so this is a good default.
  353. .TP
  354. .B always
  355. Compress all packets, including file data. This is recommended if the
  356. folders contents are mainly compressible data such as documents or
  357. text files.
  358. .TP
  359. .B never
  360. Disable all compression.
  361. .UNINDENT
  362. .TP
  363. .B introducer
  364. Set to true if this device should be trusted as an introducer, i.e. we
  365. should copy their list of devices per folder when connecting.
  366. .TP
  367. .B skipIntroductionRemovals
  368. Set to true if you wish to follow only introductions and not de\-introductions.
  369. For example, if this is set, we would not remove a device that we were introduced
  370. to even if the original introducer is no longer listing the remote device as known.
  371. .TP
  372. .B introducedBy
  373. Defines which device has introduced us to this device. Used only for following de\-introductions.
  374. .UNINDENT
  375. .sp
  376. In addition, one or more \fBaddress\fP child elements must be present. Each
  377. contains an address or host name to use when attempting to connect to this device and will
  378. be tried in order. Entries other than \fBdynamic\fP must be prefixed with \fBtcp://\fP (dual\-stack), \fBtcp4://\fP (IPv4 only) or \fBtcp6://\fP (IPv6 only). Note that IP addresses need not use tcp4/tcp6; these are optional. Accepted formats are:
  379. .INDENT 0.0
  380. .TP
  381. .B IPv4 address (\fBtcp://192.0.2.42\fP)
  382. The default port (22000) is used.
  383. .TP
  384. .B IPv4 address and port (\fBtcp://192.0.2.42:12345\fP)
  385. The address and port is used as given.
  386. .TP
  387. .B IPv6 address (\fBtcp://[2001:db8::23:42]\fP)
  388. The default port (22000) is used. The address must be enclosed in
  389. square brackets.
  390. .TP
  391. .B IPv6 address and port (\fBtcp://[2001:db8::23:42]:12345\fP)
  392. The address and port is used as given. The address must be enclosed in
  393. square brackets.
  394. .TP
  395. .B Host name (\fBtcp6://fileserver\fP)
  396. The host name will be used on the default port (22000) and connections will be attempted only via IPv6.
  397. .TP
  398. .B Host name and port (\fBtcp://fileserver:12345\fP)
  399. The host name will be used on the given port and connections will be attempted via both IPv4 and IPv6, depending on name resolution.
  400. .TP
  401. .B \fBdynamic\fP
  402. The word \fBdynamic\fP (without \fBtcp://\fP prefix) means to use local and global discovery to find the
  403. device.
  404. .UNINDENT
  405. .SH IGNOREDDEVICE ELEMENT
  406. .INDENT 0.0
  407. .INDENT 3.5
  408. .sp
  409. .nf
  410. .ft C
  411. <ignoredDevice>5SYI2FS\-LW6YAXI\-JJDYETS\-NDBBPIO\-256MWBO\-XDPXWVG\-24QPUM4\-PDW4UQU</ignoredDevice>
  412. .ft P
  413. .fi
  414. .UNINDENT
  415. .UNINDENT
  416. .sp
  417. This optional element lists device IDs that have been specifically ignored. One element must be present for each device ID. Connection attempts from these devices are logged to the console but never displayed in the web GUI.
  418. .SH GUI ELEMENT
  419. .INDENT 0.0
  420. .INDENT 3.5
  421. .sp
  422. .nf
  423. .ft C
  424. <gui enabled="true" tls="false">
  425. <address>127.0.0.1:8384</address>
  426. <apikey>l7jSbCqPD95JYZ0g8vi4ZLAMg3ulnN1b</apikey>
  427. <theme>default</theme>
  428. </gui>
  429. .ft P
  430. .fi
  431. .UNINDENT
  432. .UNINDENT
  433. .sp
  434. There must be exactly one \fBgui\fP element. The GUI configuration is also used
  435. by the rest\-api and the event\-api\&. The following attributes may
  436. be set on the \fBgui\fP element:
  437. .INDENT 0.0
  438. .TP
  439. .B enabled
  440. If not \fBtrue\fP, the GUI and API will not be started.
  441. .TP
  442. .B tls
  443. If set to \fBtrue\fP, TLS (HTTPS) will be enforced. Non\-HTTPS requests will
  444. be redirected to HTTPS. When this is set to \fBfalse\fP, TLS connections are
  445. still possible but it is not mandatory.
  446. .TP
  447. .B theme
  448. The name of the theme to use.
  449. .UNINDENT
  450. .sp
  451. The following child elements may be present:
  452. .INDENT 0.0
  453. .TP
  454. .B address
  455. Set the listen address. One address element must be present. Allowed address formats are:
  456. .INDENT 7.0
  457. .TP
  458. .B IPv4 address and port (\fB127.0.0.1:8384\fP)
  459. The address and port is used as given.
  460. .TP
  461. .B IPv6 address and port (\fB[::1]:8384\fP)
  462. The address and port is used as given. The address must be enclosed in
  463. square brackets.
  464. .TP
  465. .B Wildcard and port (\fB0.0.0.0:12345\fP, \fB[::]:12345\fP, \fB:12345\fP)
  466. These are equivalent and will result in Syncthing listening on all
  467. interfaces via both IPv4 and IPv6.
  468. .UNINDENT
  469. .TP
  470. .B user
  471. Set to require authentication.
  472. .TP
  473. .B password
  474. Contains the bcrypt hash of the real password.
  475. .TP
  476. .B apikey
  477. If set, this is the API key that enables usage of the REST interface.
  478. .UNINDENT
  479. .SH OPTIONS ELEMENT
  480. .INDENT 0.0
  481. .INDENT 3.5
  482. .sp
  483. .nf
  484. .ft C
  485. <options>
  486. <listenAddress>default</listenAddress>
  487. <globalAnnounceServer>default</globalAnnounceServer>
  488. <globalAnnounceEnabled>true</globalAnnounceEnabled>
  489. <localAnnounceEnabled>true</localAnnounceEnabled>
  490. <localAnnouncePort>21027</localAnnouncePort>
  491. <localAnnounceMCAddr>[ff12::8384]:21027</localAnnounceMCAddr>
  492. <maxSendKbps>0</maxSendKbps>
  493. <maxRecvKbps>0</maxRecvKbps>
  494. <reconnectionIntervalS>60</reconnectionIntervalS>
  495. <relaysEnabled>true</relaysEnabled>
  496. <relayReconnectIntervalM>10</relayReconnectIntervalM>
  497. <startBrowser>true</startBrowser>
  498. <natEnabled>true</natEnabled>
  499. <natLeaseMinutes>60</natLeaseMinutes>
  500. <natRenewalMinutes>30</natRenewalMinutes>
  501. <natTimeoutSeconds>10</natTimeoutSeconds>
  502. <urAccepted>0</urAccepted>
  503. <urUniqueID></urUniqueID>
  504. <urURL>https://data.syncthing.net/newdata</urURL>
  505. <urPostInsecurely>false</urPostInsecurely>
  506. <urInitialDelayS>1800</urInitialDelayS>
  507. <restartOnWakeup>true</restartOnWakeup>
  508. <autoUpgradeIntervalH>12</autoUpgradeIntervalH>
  509. <keepTemporariesH>24</keepTemporariesH>
  510. <cacheIgnoredFiles>false</cacheIgnoredFiles>
  511. <progressUpdateIntervalS>5</progressUpdateIntervalS>
  512. <symlinksEnabled>true</symlinksEnabled>
  513. <limitBandwidthInLan>false</limitBandwidthInLan>
  514. <minHomeDiskFreePct>1</minHomeDiskFreePct>
  515. <releasesURL>https://api.github.com/repos/syncthing/syncthing/releases?per_page=30</releasesURL>
  516. <overwriteRemoteDeviceNamesOnConnect>false</overwriteRemoteDeviceNamesOnConnect>
  517. <tempIndexMinBlocks>10</tempIndexMinBlocks>
  518. </options>
  519. .ft P
  520. .fi
  521. .UNINDENT
  522. .UNINDENT
  523. .sp
  524. The \fBoptions\fP element contains all other global configuration options.
  525. .INDENT 0.0
  526. .TP
  527. .B listenAddress
  528. The listen address for incoming sync connections. See
  529. \fI\%Listen Addresses\fP for allowed syntax.
  530. .TP
  531. .B globalAnnounceServer
  532. A URI to a global announce (discovery) server, or the word \fBdefault\fP to
  533. include the default servers. Any number of globalAnnounceServer elements
  534. may be present. The syntax for non\-default entries is that of a HTTP or
  535. HTTPS URL. A number of options may be added as query options to the URL:
  536. \fBinsecure\fP to prevent certificate validation (required for HTTP URLs)
  537. and \fBid=<device ID>\fP to perform certificate pinning. The device ID to
  538. use is printed by the discovery server on startup.
  539. .TP
  540. .B globalAnnounceEnabled
  541. Whether to announce this device to the global announce (discovery) server,
  542. and also use it to look up other devices.
  543. .TP
  544. .B localAnnounceEnabled
  545. Whether to send announcements to the local LAN, also use such
  546. announcements to find other devices.
  547. .TP
  548. .B localAnnouncePort
  549. The port on which to listen and send IPv4 broadcast announcements to.
  550. .TP
  551. .B localAnnounceMCAddr
  552. The group address and port to join and send IPv6 multicast announcements on.
  553. .TP
  554. .B relayServer
  555. Lists one or more relay servers, on the format \fBrelay://hostname:port\fP\&.
  556. Alternatively, a relay list can be loaded over https by using an URL like
  557. \fBdynamic+https://somehost/path\fP\&. The default loads the list of relays
  558. from the relay pool server, \fBrelays.syncthing.net\fP\&.
  559. .TP
  560. .B maxSendKbps
  561. Outgoing data rate limit, in kibibytes per second.
  562. .TP
  563. .B maxRecvKbps
  564. Incoming data rate limits, in kibibytes per second.
  565. .TP
  566. .B reconnectionIntervalS
  567. The number of seconds to wait between each attempt to connect to currently
  568. unconnected devices.
  569. .TP
  570. .B relaysEnabled
  571. When true, relays will be connected to and potentially used for device to device connections.
  572. .TP
  573. .B relayReconnectIntervalM
  574. Sets the interval, in minutes, between relay reconnect attempts.
  575. .TP
  576. .B startBrowser
  577. Whether to attempt to start a browser to show the GUI when Syncthing starts.
  578. .TP
  579. .B natEnabled
  580. Whether to attempt to perform a UPnP and NAT\-PMP port mapping for
  581. incoming sync connections.
  582. .TP
  583. .B natLeaseMinutes
  584. Request a lease for this many minutes; zero to request a permanent lease.
  585. .TP
  586. .B natRenewalMinutes
  587. Attempt to renew the lease after this many minutes.
  588. .TP
  589. .B natTimeoutSeconds
  590. When scanning for UPnP devices, wait this long for responses.
  591. .TP
  592. .B urAccepted
  593. Whether the user has accepted to submit anonymous usage data. The default,
  594. \fB0\fP, mean the user has not made a choice, and Syncthing will ask at some
  595. point in the future. \fB\-1\fP means no, a number above zero means that that
  596. version of usage reporting has been accepted.
  597. .TP
  598. .B urUniqueID
  599. The unique ID sent together with the usage report. Generated when usage
  600. reporting is enabled.
  601. .TP
  602. .B urURL
  603. The URL to post usage report data to, when enabled.
  604. .TP
  605. .B urPostInsecurely
  606. When true, the UR URL can be http instead of https, or have a self\-signed
  607. certificate. The default is \fBfalse\fP\&.
  608. .TP
  609. .B urInitialDelayS
  610. The time to wait from startup to the first usage report being sent. Allows
  611. the system to stabilize before reporting statistics.
  612. .TP
  613. .B restartOnWakeup
  614. Whether to perform a restart of Syncthing when it is detected that we are
  615. waking from sleep mode (i.e. a folded up laptop).
  616. .TP
  617. .B autoUpgradeIntervalH
  618. Check for a newer version after this many hours. Set to zero to disable
  619. automatic upgrades.
  620. .TP
  621. .B keepTemporariesH
  622. Keep temporary failed transfers for this many hours. While the temporaries
  623. are kept, the data they contain need not be transferred again.
  624. .TP
  625. .B cacheIgnoredFiles
  626. Whether to cache the results of ignore pattern evaluation. Performance
  627. at the price of memory. Defaults to \fBfalse\fP as the cost for evaluating
  628. ignores is usually not significant.
  629. .TP
  630. .B progressUpdateIntervalS
  631. How often in seconds the progress of ongoing downloads is made available to
  632. the GUI.
  633. .TP
  634. .B symlinksEnabled
  635. Whether to sync symlinks, if supported by the system.
  636. .TP
  637. .B limitBandwidthInLan
  638. Whether to apply bandwidth limits to devices in the same broadcast domain
  639. as the local device.
  640. .TP
  641. .B databaseBlockCacheMiB
  642. Override the automatically calculated database block cache size. Don\(aqt,
  643. unless you\(aqre very short on memory, in which case you want to set this to
  644. \fB8\fP\&.
  645. .TP
  646. .B pingTimeoutS
  647. Ping\-timeout in seconds. Don\(aqt change it unless you are having issues due to
  648. slow response time (slow connection/cpu) and large index exchanges.
  649. .TP
  650. .B pingIdleTimeS
  651. Ping interval in seconds. Don\(aqt change it unless you feel it\(aqs necessary.
  652. .TP
  653. .B minHomeDiskFreePct
  654. The percentage of space that should be available on the partition holding
  655. the configuration and index.
  656. .TP
  657. .B releasesURL
  658. The URL from which release information is loaded, for automatic upgrades.
  659. .TP
  660. .B overwriteRemoteDeviceNamesOnConnect
  661. If set, device names will always be overwritten with the name given by
  662. remote on each connection. By default, the name that the remote device
  663. announces will only be adopted when a name has not already been set.
  664. .TP
  665. .B tempIndexMinBlocks
  666. When exchanging index information for incomplete transfers, only take
  667. into account files that have at least this many blocks.
  668. .UNINDENT
  669. .SS Listen Addresses
  670. .sp
  671. The following address types are accepted in sync protocol listen addresses:
  672. .INDENT 0.0
  673. .TP
  674. .B TCP wildcard and port (\fBtcp://0.0.0.0:22000\fP, \fBtcp://:22000\fP)
  675. These are equivalent and will result in Syncthing listening on all
  676. interfaces, IPv4 and IPv6, on the specified port.
  677. .TP
  678. .B TCP IPv4 wildcard and port (\fBtcp4://0.0.0.0:22000\fP, \fBtcp4://:22000\fP)
  679. These are equivalent and will result in Syncthing listening on all
  680. interfaces via IPv4 only.
  681. .TP
  682. .B TCP IPv4 address and port (\fBtcp4://192.0.2.1:22000\fP)
  683. These are equivalent and will result in Syncthing listening on the
  684. specified address and port only.
  685. .TP
  686. .B TCP IPv6 wildcard and port (\fBtcp6://[::]:22000\fP, \fBtcp6://:22000\fP)
  687. These are equivalent and will result in Syncthing listening on all
  688. interfaces via IPv6 only.
  689. .TP
  690. .B TCP IPv6 address and port (\fBtcp6://[2001:db8::42]:22000\fP)
  691. These are equivalent and will result in Syncthing listening on the
  692. specified address and port only.
  693. .TP
  694. .B Static relay address (\fBrelay://192.0.2.42:22067?id=abcd123...\fP)
  695. Syncthing will connect to and listen for incoming connections via the
  696. specified relay address.
  697. .INDENT 7.0
  698. .INDENT 3.5
  699. .SS Todo
  700. .sp
  701. Document available URL parameters.
  702. .UNINDENT
  703. .UNINDENT
  704. .TP
  705. .B Dynamic relay pool (\fBdynamic+https://192.0.2.42/relays\fP)
  706. Syncthing will fetch the specified HTTPS URL, parse it for a JSON payload
  707. describing relays, select a relay from the available ones and listen via
  708. that as if specified as a static relay above.
  709. .INDENT 7.0
  710. .INDENT 3.5
  711. .SS Todo
  712. .sp
  713. Document available URL parameters.
  714. .UNINDENT
  715. .UNINDENT
  716. .UNINDENT
  717. .SH SYNCING CONFIGURATION FILES
  718. .sp
  719. Syncing configuration files between devices (such that multiple devices are
  720. using the same configuration files) can cause issues. This is easy to do
  721. accidentally if you sync your home folder between devices. A common symptom
  722. of syncing configuration files is two devices ending up with the same Device ID.
  723. .sp
  724. If you want to use Syncthing to backup your configuration files, it is recommended
  725. that the files you are backing up are in a folder\-master to prevent other
  726. devices from overwriting the per device configuration. The folder on the remote
  727. device(s) should not be used as configuration for the remote devices.
  728. .sp
  729. If you\(aqd like to sync your home folder in non\-master mode, you may add the
  730. folder that stores the configuration files to the ignore list\&.
  731. If you\(aqd also like to backup your configuration files, add another folder in
  732. master mode for just the configuration folder.
  733. .SH AUTHOR
  734. The Syncthing Authors
  735. .SH COPYRIGHT
  736. 2015, The Syncthing Authors
  737. .\" Generated by docutils manpage writer.
  738. .