syncthing-config.5 24 KB

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