syncthing-config.5 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .TH "SYNCTHING-CONFIG" "5" "July 27, 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 the default configuration file:
  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
  362. .nf
  363. \(ga\(ga
  364. .fi
  365. tcp6://\(ga (IPv6 only). Note that IP addresses need not use tcp4/tcp6; these are optional. Accepted formats are:
  366. .INDENT 0.0
  367. .TP
  368. .B IPv4 address (\fBtcp://192.0.2.42\fP)
  369. The default port (22000) is used.
  370. .TP
  371. .B IPv4 address and port (\fBtcp://192.0.2.42:12345\fP)
  372. The address and port is used as given.
  373. .TP
  374. .B IPv6 address (\fBtcp://[2001:db8::23:42]\fP)
  375. The default port (22000) is used. The address must be enclosed in
  376. square brackets.
  377. .TP
  378. .B IPv6 address and port (\fBtcp://[2001:db8::23:42]:12345\fP)
  379. The address and port is used as given. The address must be enclosed in
  380. square brackets.
  381. .TP
  382. .B Host name (\fBtcp6://fileserver\fP)
  383. The host name will be used on the default port (22000) and connections will be attempted only via IPv6.
  384. .TP
  385. .B Host name and port (\fBtcp://fileserver:12345\fP)
  386. The host name will be used on the given port and connections will be attempted via both IPv4 and IPv6, depending on name resolution.
  387. .TP
  388. .B \fBdynamic\fP
  389. The word \fBdynamic\fP (without \fBtcp://\fP prefix) means to use local and global discovery to find the
  390. device.
  391. .UNINDENT
  392. .SH IGNOREDDEVICE ELEMENT
  393. .INDENT 0.0
  394. .INDENT 3.5
  395. .sp
  396. .nf
  397. .ft C
  398. <ignoredDevice>5SYI2FS\-LW6YAXI\-JJDYETS\-NDBBPIO\-256MWBO\-XDPXWVG\-24QPUM4\-PDW4UQU</ignoredDevice>
  399. .ft P
  400. .fi
  401. .UNINDENT
  402. .UNINDENT
  403. .sp
  404. 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.
  405. .SH GUI ELEMENT
  406. .INDENT 0.0
  407. .INDENT 3.5
  408. .sp
  409. .nf
  410. .ft C
  411. <gui enabled="true" tls="false">
  412. <address>127.0.0.1:8384</address>
  413. <apikey>l7jSbCqPD95JYZ0g8vi4ZLAMg3ulnN1b</apikey>
  414. <theme>default</theme>
  415. </gui>
  416. .ft P
  417. .fi
  418. .UNINDENT
  419. .UNINDENT
  420. .sp
  421. There must be exactly one \fBgui\fP element. The GUI configuration is also used
  422. by the rest\-api and the event\-api\&. The following attributes may
  423. be set on the \fBgui\fP element:
  424. .INDENT 0.0
  425. .TP
  426. .B enabled
  427. If not \fBtrue\fP, the GUI and API will not be started.
  428. .TP
  429. .B tls
  430. If set to \fBtrue\fP, TLS (HTTPS) will be enforced. Non\-HTTPS requests will
  431. be redirected to HTTPS. When this is set to \fBfalse\fP, TLS connections are
  432. still possible but it is not mandatory.
  433. .TP
  434. .B theme
  435. The name of the theme to use.
  436. .UNINDENT
  437. .sp
  438. The following child elements may be present:
  439. .INDENT 0.0
  440. .TP
  441. .B address
  442. Set the listen addresses. One or more address elements must be present.
  443. Allowed address formats are:
  444. .INDENT 7.0
  445. .TP
  446. .B IPv4 address and port (\fB127.0.0.1:8384\fP)
  447. The address and port is used as given.
  448. .TP
  449. .B IPv6 address and port (\fB[::1]:8384\fP)
  450. The address and port is used as given. The address must be enclosed in
  451. square brackets.
  452. .TP
  453. .B Wildcard and port (\fB0.0.0.0:12345\fP, \fB[::]:12345\fP, \fB:12345\fP)
  454. These are equivalent and will result in Syncthing listening on all
  455. interfaces via both IPv4 and IPv6.
  456. .UNINDENT
  457. .TP
  458. .B user
  459. Set to require authentication.
  460. .TP
  461. .B password
  462. Contains the bcrypt hash of the real password.
  463. .TP
  464. .B apikey
  465. If set, this is the API key that enables usage of the REST interface.
  466. .UNINDENT
  467. .SH OPTIONS ELEMENT
  468. .INDENT 0.0
  469. .INDENT 3.5
  470. .sp
  471. .nf
  472. .ft C
  473. <options>
  474. <listenAddress>default</listenAddress>
  475. <globalAnnounceServer>default</globalAnnounceServer>
  476. <globalAnnounceEnabled>true</globalAnnounceEnabled>
  477. <localAnnounceEnabled>true</localAnnounceEnabled>
  478. <localAnnouncePort>21027</localAnnouncePort>
  479. <localAnnounceMCAddr>[ff12::8384]:21027</localAnnounceMCAddr>
  480. <maxSendKbps>0</maxSendKbps>
  481. <maxRecvKbps>0</maxRecvKbps>
  482. <reconnectionIntervalS>60</reconnectionIntervalS>
  483. <relaysEnabled>true</relaysEnabled>
  484. <relayReconnectIntervalM>10</relayReconnectIntervalM>
  485. <startBrowser>true</startBrowser>
  486. <natEnabled>true</natEnabled>
  487. <natLeaseMinutes>60</natLeaseMinutes>
  488. <natRenewalMinutes>30</natRenewalMinutes>
  489. <natTimeoutSeconds>10</natTimeoutSeconds>
  490. <urAccepted>0</urAccepted>
  491. <urUniqueID></urUniqueID>
  492. <urURL>https://data.syncthing.net/newdata</urURL>
  493. <urPostInsecurely>false</urPostInsecurely>
  494. <urInitialDelayS>1800</urInitialDelayS>
  495. <restartOnWakeup>true</restartOnWakeup>
  496. <autoUpgradeIntervalH>12</autoUpgradeIntervalH>
  497. <keepTemporariesH>24</keepTemporariesH>
  498. <cacheIgnoredFiles>false</cacheIgnoredFiles>
  499. <progressUpdateIntervalS>5</progressUpdateIntervalS>
  500. <symlinksEnabled>true</symlinksEnabled>
  501. <limitBandwidthInLan>false</limitBandwidthInLan>
  502. <minHomeDiskFreePct>1</minHomeDiskFreePct>
  503. <releasesURL>https://api.github.com/repos/syncthing/syncthing/releases?per_page=30</releasesURL>
  504. <overwriteRemoteDeviceNamesOnConnect>false</overwriteRemoteDeviceNamesOnConnect>
  505. <tempIndexMinBlocks>10</tempIndexMinBlocks>
  506. </options>
  507. .ft P
  508. .fi
  509. .UNINDENT
  510. .UNINDENT
  511. .sp
  512. The \fBoptions\fP element contains all other global configuration options.
  513. .INDENT 0.0
  514. .TP
  515. .B listenAddress
  516. The listen address for incoming sync connections. See
  517. \fI\%Listen Addresses\fP for allowed syntax.
  518. .TP
  519. .B globalAnnounceServer
  520. A URI to a global announce (discovery) server, or the word \fBdefault\fP to
  521. include the default servers. Any number of globalAnnounceServer elements
  522. may be present. The syntax for non\-default entries is that of a HTTP or
  523. HTTPS URL. A number of options may be added as query options to the URL:
  524. \fBinsecure\fP to prevent certificate validation (required for HTTP URLs)
  525. and \fBid=<device ID>\fP to perform certificate pinning. The device ID to
  526. use is printed by the discovery server on startup.
  527. .TP
  528. .B globalAnnounceEnabled
  529. Whether to announce this device to the global announce (discovery) server,
  530. and also use it to look up other devices.
  531. .TP
  532. .B localAnnounceEnabled
  533. Whether to send announcements to the local LAN, also use such
  534. announcements to find other devices.
  535. .TP
  536. .B localAnnouncePort
  537. The port on which to listen and send IPv4 broadcast announcements to.
  538. .TP
  539. .B localAnnounceMCAddr
  540. The group address and port to join and send IPv6 multicast announcements on.
  541. .TP
  542. .B relayServer
  543. Lists one or more relay servers, on the format \fBrelay://hostname:port\fP\&.
  544. Alternatively, a relay list can be loaded over https by using an URL like
  545. \fBdynamic+https://somehost/path\fP\&. The default loads the list of relays
  546. from the relay pool server, \fBrelays.syncthing.net\fP\&.
  547. .TP
  548. .B maxSendKbps
  549. Outgoing data rate limit, in kibibytes per second.
  550. .TP
  551. .B maxRecvKbps
  552. Incoming data rate limits, in kibibytes per second.
  553. .TP
  554. .B reconnectionIntervalS
  555. The number of seconds to wait between each attempt to connect to currently
  556. unconnected devices.
  557. .TP
  558. .B relaysEnabled
  559. When true, relays will be connected to and potentially used for device to device connections.
  560. .TP
  561. .B relayReconnectIntervalM
  562. Sets the interval, in minutes, between relay reconnect attempts.
  563. .TP
  564. .B startBrowser
  565. Whether to attempt to start a browser to show the GUI when Syncthing starts.
  566. .TP
  567. .B natEnabled
  568. Whether to attempt to perform an UPnP and NAT\-PMP port mapping for
  569. incoming sync connections.
  570. .TP
  571. .B natLeaseMinutes
  572. Request a lease for this many minutes; zero to request a permanent lease.
  573. .TP
  574. .B natRenewalMinutes
  575. Attempt to renew the lease after this many minutes.
  576. .TP
  577. .B natTimeoutSeconds
  578. When scanning for UPnP devices, wait this long for responses.
  579. .TP
  580. .B urAccepted
  581. Whether the user has accepted to submit anonymous usage data. The default,
  582. \fB0\fP, mean the user has not made a choice, and Syncthing will ask at some
  583. point in the future. \fB\-1\fP means no, a number above zero means that that
  584. version of usage reporting has been accepted.
  585. .TP
  586. .B urUniqueID
  587. The unique ID sent together with the usage report. Generated when usage
  588. reporting is enabled.
  589. .TP
  590. .B urURL
  591. The URL to post usage report data to, when enabled.
  592. .TP
  593. .B urPostInsecurely
  594. When true, the UR URL can be http instead of https, or have a self\-signed
  595. certificate. The default is \fBfalse\fP\&.
  596. .TP
  597. .B urInitialDelayS
  598. The time to wait from startup to the first usage report being sent. Allows
  599. the system to stabilize before reporting statistics.
  600. .TP
  601. .B restartOnWakeup
  602. Whether to perform a restart of Syncthing when it is detected that we are
  603. waking from sleep mode (i.e. a folded up laptop).
  604. .TP
  605. .B autoUpgradeIntervalH
  606. Check for a newer version after this many hours. Set to zero to disable
  607. automatic upgrades.
  608. .TP
  609. .B keepTemporariesH
  610. Keep temporary failed transfers for this many hours. While the temporaries
  611. are kept, the data they contain need not be transferred again.
  612. .TP
  613. .B cacheIgnoredFiles
  614. Whether to cache the results of ignore pattern evaluation. Performance
  615. at the price of memory. Defaults to \fBfalse\fP as the cost for evaluating
  616. ignores is usually not significant.
  617. .TP
  618. .B progressUpdateIntervalS
  619. How often in seconds the progress of ongoing downloads is made available to
  620. the GUI.
  621. .TP
  622. .B symlinksEnabled
  623. Whether to sync symlinks, if supported by the system.
  624. .TP
  625. .B limitBandwidthInLan
  626. Whether to apply bandwidth limits to devices in the same broadcast domain
  627. as the local device.
  628. .TP
  629. .B databaseBlockCacheMiB
  630. Override the automatically calculated database block cache size. Don\(aqt,
  631. unless you\(aqre very short on memory, in which case you want to set this to
  632. \fB8\fP\&.
  633. .TP
  634. .B pingTimeoutS
  635. Ping\-timeout in seconds. Don\(aqt change it unless you are having issues due to
  636. slow response time (slow connection/cpu) and large index exchanges.
  637. .TP
  638. .B pingIdleTimeS
  639. Ping interval in seconds. Don\(aqt change it unless you feel it\(aqs necessary.
  640. .TP
  641. .B minHomeDiskFreePct
  642. The percentage of space that should be available on the partition holding
  643. the configuration and index.
  644. .TP
  645. .B releasesURL
  646. The URL from which release information is loaded, for automatic upgrades.
  647. .TP
  648. .B overwriteRemoteDeviceNamesOnConnect
  649. If set, device names will always be overwritten with the name given by
  650. remote on each connection. By default, the name that the remote device
  651. announces will only be adopted when a name has not already been set.
  652. .TP
  653. .B tempIndexMinBlocks
  654. When exchanging index information for incomplete transfers, only take
  655. into account files that have at least this many blocks.
  656. .UNINDENT
  657. .SS Listen Addresses
  658. .sp
  659. The following address types are accepted in sync protocol listen addresses:
  660. .INDENT 0.0
  661. .TP
  662. .B TCP wildcard and port (\fBtcp://0.0.0.0:22000\fP, \fBtcp://:22000\fP)
  663. These are equivalent and will result in Syncthing listening on all
  664. interfaces, IPv4 and IPv6, on the specified port.
  665. .TP
  666. .B TCP IPv4 wildcard and port (\fBtcp4://0.0.0.0:22000\fP, \fBtcp4://:22000\fP)
  667. These are equivalent and will result in Syncthing listening on all
  668. interfaces via IPv4 only.
  669. .TP
  670. .B TCP IPv4 address and port (\fBtcp4://192.0.2.1:22000\fP)
  671. These are equivalent and will result in Syncthing listening on the
  672. specified address and port only.
  673. .TP
  674. .B TCP IPv6 wildcard and port (\fBtcp6://[::]:22000\fP, \fBtcp6://:22000\fP)
  675. These are equivalent and will result in Syncthing listening on all
  676. interfaces via IPv6 only.
  677. .TP
  678. .B TCP IPv6 address and port (\fBtcp6://[2001:db8::42]:22000\fP)
  679. These are equivalent and will result in Syncthing listening on the
  680. specified address and port only.
  681. .TP
  682. .B Static relay address (\fBrelay://192.0.2.42:22067?id=abcd123...\fP)
  683. Syncthing will connect to and listen for incoming connections via the
  684. specified relay address.
  685. .INDENT 7.0
  686. .INDENT 3.5
  687. .SS Todo
  688. .sp
  689. Document available URL parameters.
  690. .UNINDENT
  691. .UNINDENT
  692. .TP
  693. .B Dynamic relay pool (\fBdynamic+https://192.0.2.42/relays\fP)
  694. Syncthing will fetch the specified HTTPS URL, parse it for a JSON payload
  695. describing relays, select a relay from the available ones and listen via
  696. that as if specified as a static relay above.
  697. .INDENT 7.0
  698. .INDENT 3.5
  699. .SS Todo
  700. .sp
  701. Document available URL parameters.
  702. .UNINDENT
  703. .UNINDENT
  704. .UNINDENT
  705. .SH SYNCING CONFIGURATION FILES
  706. .sp
  707. Syncing configuration files between devices (such that multiple devices are
  708. using the same configuration files) can cause issues. This is easy to do
  709. accidentally if you sync your home folder between devices. A common symptom
  710. of syncing configuration files is two devices ending up with the same Device ID.
  711. .sp
  712. If you want to use Syncthing to backup your configuration files, it is recommended
  713. that the files you are backing up are in a folder\-master to prevent other
  714. devices from overwriting the per device configuration. The folder on the remote
  715. device(s) should not be used as configuration for the remote devices.
  716. .sp
  717. If you\(aqd like to sync your home folder in non\-master mode, you may add the
  718. folder that stores the configuration files to the ignore list\&.
  719. If you\(aqd also like to backup your configuration files, add another folder in
  720. master mode for just the configuration folder.
  721. .SH AUTHOR
  722. The Syncthing Authors
  723. .SH COPYRIGHT
  724. 2015, The Syncthing Authors
  725. .\" Generated by docutils manpage writer.
  726. .