syncthing-config.5 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .TH "SYNCTHING-CONFIG" "5" "Sep 02, 2018" "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’s 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="26">
  85. <folder id="zj2AA\-q55a7" label="Default Folder" path="/Users/jb/Sync/" type="sendreceive" rescanIntervalS="60" fsWatcherEnabled="false" fsWatcherDelayS="10" ignorePerms="false" autoNormalize="true">
  86. <device id="3LT2GA5\-CQI4XJM\-WTZ264P\-MLOGMHL\-MCRLDNT\-MZV4RD3\-KA745CL\-OGAERQZ"></device>
  87. <filesystemType>basic</filesystemType>
  88. <minDiskFree unit="%">1</minDiskFree>
  89. <versioning></versioning>
  90. <copiers>0</copiers>
  91. <pullers>0</pullers>
  92. <hashers>0</hashers>
  93. <order>random</order>
  94. <ignoreDelete>false</ignoreDelete>
  95. <scanProgressIntervalS>0</scanProgressIntervalS>
  96. <pullerPauseS>0</pullerPauseS>
  97. <maxConflicts>\-1</maxConflicts>
  98. <disableSparseFiles>false</disableSparseFiles>
  99. <disableTempIndexes>false</disableTempIndexes>
  100. <paused>false</paused>
  101. <weakHashThresholdPct>25</weakHashThresholdPct>
  102. <markerName>.stfolder</markerName>
  103. </folder>
  104. <device id="3LT2GA5\-CQI4XJM\-WTZ264P\-MLOGMHL\-MCRLDNT\-MZV4RD3\-KA745CL\-OGAERQZ" name="syno" compression="metadata" introducer="false" skipIntroductionRemovals="false" introducedBy="">
  105. <address>dynamic</address>
  106. <paused>false</paused>
  107. </device>
  108. <gui enabled="true" tls="false" debugging="false">
  109. <address>127.0.0.1:8384</address>
  110. <apikey>k1dnz1Dd0rzTBjjFFh7CXPnrF12C49B1</apikey>
  111. <theme>default</theme>
  112. </gui>
  113. <options>
  114. <listenAddress>default</listenAddress>
  115. <globalAnnounceServer>default</globalAnnounceServer>
  116. <globalAnnounceEnabled>true</globalAnnounceEnabled>
  117. <localAnnounceEnabled>true</localAnnounceEnabled>
  118. <localAnnouncePort>21027</localAnnouncePort>
  119. <localAnnounceMCAddr>[ff12::8384]:21027</localAnnounceMCAddr>
  120. <maxSendKbps>0</maxSendKbps>
  121. <maxRecvKbps>0</maxRecvKbps>
  122. <reconnectionIntervalS>60</reconnectionIntervalS>
  123. <relaysEnabled>true</relaysEnabled>
  124. <relayReconnectIntervalM>10</relayReconnectIntervalM>
  125. <startBrowser>true</startBrowser>
  126. <natEnabled>true</natEnabled>
  127. <natLeaseMinutes>60</natLeaseMinutes>
  128. <natRenewalMinutes>30</natRenewalMinutes>
  129. <natTimeoutSeconds>10</natTimeoutSeconds>
  130. <urAccepted>0</urAccepted>
  131. <urSeen>0</urSeen>
  132. <urUniqueID>LFWe2vn3</urUniqueID>
  133. <urURL>https://data.syncthing.net/newdata</urURL>
  134. <urPostInsecurely>false</urPostInsecurely>
  135. <urInitialDelayS>1800</urInitialDelayS>
  136. <restartOnWakeup>true</restartOnWakeup>
  137. <autoUpgradeIntervalH>12</autoUpgradeIntervalH>
  138. <upgradeToPreReleases>false</upgradeToPreReleases>
  139. <keepTemporariesH>24</keepTemporariesH>
  140. <cacheIgnoredFiles>false</cacheIgnoredFiles>
  141. <progressUpdateIntervalS>5</progressUpdateIntervalS>
  142. <limitBandwidthInLan>false</limitBandwidthInLan>
  143. <minHomeDiskFree unit="%">1</minHomeDiskFree>
  144. <releasesURL>https://upgrades.syncthing.net/meta.json</releasesURL>
  145. <overwriteRemoteDeviceNamesOnConnect>false</overwriteRemoteDeviceNamesOnConnect>
  146. <tempIndexMinBlocks>10</tempIndexMinBlocks>
  147. <trafficClass>0</trafficClass>
  148. <weakHashSelectionMethod>auto</weakHashSelectionMethod>
  149. <stunServer>default</stunServer>
  150. <stunKeepaliveSeconds>24</stunKeepaliveSeconds>
  151. <kcpNoDelay>false</kcpNoDelay>
  152. <kcpUpdateIntervalMs>25</kcpUpdateIntervalMs>
  153. <kcpFastResend>false</kcpFastResend>
  154. <kcpCongestionControl>true</kcpCongestionControl>
  155. <kcpSendWindowSize>128</kcpSendWindowSize>
  156. <kcpReceiveWindowSize>128</kcpReceiveWindowSize>
  157. <defaultFolderPath>~</defaultFolderPath>
  158. <minHomeDiskFreePct>0</minHomeDiskFreePct>
  159. <setLowPriority>true</setLowPriority>
  160. </options>
  161. </configuration>
  162. .ft P
  163. .fi
  164. .UNINDENT
  165. .UNINDENT
  166. .SH CONFIGURATION ELEMENT
  167. .INDENT 0.0
  168. .INDENT 3.5
  169. .sp
  170. .nf
  171. .ft C
  172. <configuration version="26">
  173. <folder></folder>
  174. <device></device>
  175. <gui></gui>
  176. <options></options>
  177. <ignoredDevice>5SYI2FS\-LW6YAXI\-JJDYETS\-NDBBPIO\-256MWBO\-XDPXWVG\-24QPUM4\-PDW4UQU</ignoredDevice>
  178. <ignoredFolder>bd7q3\-zskm5</ignoredDevice>
  179. </configuration>
  180. .ft P
  181. .fi
  182. .UNINDENT
  183. .UNINDENT
  184. .sp
  185. This is the root element. It has one attribute:
  186. .INDENT 0.0
  187. .TP
  188. .B version
  189. The config version. Increments whenever a change is made that requires
  190. migration from previous formats.
  191. .UNINDENT
  192. .sp
  193. It contains the elements described in the following sections and these two
  194. additional child elements:
  195. .INDENT 0.0
  196. .TP
  197. .B ignoredDevice
  198. Contains the ID of the device that should be ignored. Connection attempts
  199. from this device are logged to the console but never displayed in the web
  200. GUI.
  201. .TP
  202. .B ignoredFolder
  203. Contains the ID of the folder that should be ignored. This folder will
  204. always be skipped when advertised from a remote device, i.e. this will be
  205. logged, but there will be no dialog about it in the web GUI.
  206. .UNINDENT
  207. .SH FOLDER ELEMENT
  208. .INDENT 0.0
  209. .INDENT 3.5
  210. .sp
  211. .nf
  212. .ft C
  213. <folder id="zj2AA\-q55a7" label="Default Folder" path="/Users/jb/Sync/" type="sendreceive" rescanIntervalS="60" fsWatcherEnabled="false" fsWatcherDelayS="10" ignorePerms="false" autoNormalize="true">
  214. <device id="3LT2GA5\-CQI4XJM\-WTZ264P\-MLOGMHL\-MCRLDNT\-MZV4RD3\-KA745CL\-OGAERQZ"></device>
  215. <filesystemType>basic</filesystemType>
  216. <minDiskFree unit="%">1</minDiskFree>
  217. <versioning></versioning>
  218. <copiers>0</copiers>
  219. <pullers>0</pullers>
  220. <hashers>0</hashers>
  221. <order>random</order>
  222. <ignoreDelete>false</ignoreDelete>
  223. <scanProgressIntervalS>0</scanProgressIntervalS>
  224. <pullerPauseS>0</pullerPauseS>
  225. <maxConflicts>\-1</maxConflicts>
  226. <disableSparseFiles>false</disableSparseFiles>
  227. <disableTempIndexes>false</disableTempIndexes>
  228. <paused>false</paused>
  229. <weakHashThresholdPct>25</weakHashThresholdPct>
  230. <markerName>.stfolder</markerName>
  231. </folder>
  232. .ft P
  233. .fi
  234. .UNINDENT
  235. .UNINDENT
  236. .sp
  237. One or more \fBfolder\fP elements must be present in the file. Each element
  238. describes one folder. The following attributes may be set on the \fBfolder\fP
  239. element:
  240. .INDENT 0.0
  241. .TP
  242. .B id
  243. The folder ID, must be unique. (mandatory)
  244. .TP
  245. .B label
  246. The label of a folder is a human readable and descriptive local name. May
  247. be different on each device, empty, and/or identical to other folder
  248. labels. (optional)
  249. .TP
  250. .B path
  251. The path to the directory where the folder is stored on this
  252. device; not sent to other devices. (mandatory)
  253. .TP
  254. .B type
  255. Controls how the folder is handled by Syncthing. Possible values are:
  256. .INDENT 7.0
  257. .TP
  258. .B sendreceive
  259. The folder is in default mode. Sending local and accepting remote changes.
  260. Note that this type was previously called “readwrite” which is deprecated
  261. but still accepted in incoming configs.
  262. .TP
  263. .B sendonly
  264. The folder is in “send only” mode – it will not be modified by
  265. Syncthing on this device.
  266. Note that this type was previously called “readonly” which is deprecated
  267. but still accepted in incoming configs.
  268. .TP
  269. .B receiveonly
  270. The folder is in “receive only” mode – it will not propagate
  271. changes to other devices.
  272. .UNINDENT
  273. .TP
  274. .B rescanIntervalS
  275. The rescan interval, in seconds. Can be set to zero to disable when external
  276. plugins are used to trigger rescans.
  277. .TP
  278. .B fsWatcherEnabled
  279. If enabled this detects changes to files in the folder and scans them.
  280. .UNINDENT
  281. .INDENT 0.0
  282. .TP
  283. .B fsWatcherDelayS
  284. The duration during which changes detected are accumulated, before a scan is
  285. scheduled (only takes effect if \fBfsWatcherEnabled\fP is true).
  286. .TP
  287. .B ignorePerms
  288. True if the folder should ignore permissions.
  289. .TP
  290. .B autoNormalize
  291. Automatically correct UTF\-8 normalization errors found in file names.
  292. .UNINDENT
  293. .sp
  294. The following child elements may exist:
  295. .INDENT 0.0
  296. .TP
  297. .B device
  298. These must have the \fBid\fP attribute and can have an \fBintroducedBy\fP attribute,
  299. identifying the device that introduced us to share this folder with the given device.
  300. If the original introducer unshares this folder with this device, our device will follow
  301. and unshare the folder (subject to skipIntroductionRemovals being false on the introducer device).
  302. All mentioned devices are those that will be sharing the folder in question.
  303. Each mentioned device must have a separate \fBdevice\fP element later in the file.
  304. It is customary that the local device ID is included in all folders.
  305. Syncthing will currently add this automatically if it is not present in
  306. the configuration file.
  307. .TP
  308. .B minDiskFree
  309. The minimum required free space that should be available on the disk this folder
  310. resides. The folder will be stopped when the value drops below the threshold. Accepted units are
  311. \fB%\fP, \fBkB\fP, \fBMB\fP, \fBGB\fP and \fBTB\fP\&. Set to zero to disable.
  312. .TP
  313. .B versioning
  314. Specifies a versioning configuration.
  315. .UNINDENT
  316. .sp
  317. \fBSEE ALSO:\fP
  318. .INDENT 0.0
  319. .INDENT 3.5
  320. versioning
  321. .UNINDENT
  322. .UNINDENT
  323. .INDENT 0.0
  324. .TP
  325. .B copiers, pullers, hashers
  326. The number of copier, puller and hasher routines to use, or zero for the
  327. system determined optimum. These are low level performance options for
  328. advanced users only; do not change unless requested to or you’ve actually
  329. read and understood the code yourself. :)
  330. .TP
  331. .B order
  332. The order in which needed files should be pulled from the cluster.
  333. The possibles values are:
  334. .INDENT 7.0
  335. .TP
  336. .B random
  337. Pull files in random order. This optimizes for balancing resources among
  338. the devices in a cluster.
  339. .TP
  340. .B alphabetic
  341. Pull files ordered by file name alphabetically.
  342. .TP
  343. .B smallestFirst, largestFirst
  344. Pull files ordered by file size; smallest and largest first respectively.
  345. .TP
  346. .B oldestFirst, newestFirst
  347. Pull files ordered by modification time; oldest and newest first
  348. respectively.
  349. .UNINDENT
  350. .TP
  351. .B ignoreDelete
  352. When set to true, this device will pretend not to see instructions to
  353. delete files from other devices.
  354. .TP
  355. .B scanProgressIntervalS
  356. The interval with which scan progress information is sent to the GUI. Zero
  357. means the default value (two seconds).
  358. .TP
  359. .B pullerPauseS
  360. Tweak for rate limiting the puller when it retries pulling files. Don’t
  361. change these unless you know what you’re doing.
  362. .TP
  363. .B maxConflicts
  364. The maximum number of conflict copies to keep around for any given file.
  365. The default, \-1, means an unlimited number. Setting this to zero disables
  366. conflict copies altogether.
  367. .TP
  368. .B disableSparseFiles
  369. By default, blocks containing all zeroes are not written, causing files
  370. to be sparse on filesystems that support the concept. When set to true,
  371. sparse files will not be created.
  372. .TP
  373. .B disableTempIndexes
  374. By default, devices exchange information about blocks available in
  375. transfers that are still in progress. When set to true, such information
  376. is not exchanged for this folder.
  377. .TP
  378. .B paused
  379. True if this folder is (temporarily) suspended.
  380. .TP
  381. .B weakHashThresholdPct
  382. Use weak hash if more than the given percentage of the file has changed. Set
  383. to \-1 to always use weak hash. Default value is 25.
  384. .TP
  385. .B markerName
  386. Name of a directory or file in the folder root to be used as
  387. marker\-faq\&. Default is “.stfolder”.
  388. .TP
  389. .B fsync
  390. Deprecated since version v0.14.37.
  391. .sp
  392. Transfer updated (from other devices) files to permanent storage before
  393. committing the changes to the internal database.
  394. .TP
  395. .B pullerSleepS
  396. Deprecated since version v0.14.41.
  397. .sp
  398. Tweak for rate limiting the puller. Don’t change these unless you know
  399. what you’re doing.
  400. .UNINDENT
  401. .SH DEVICE ELEMENT
  402. .INDENT 0.0
  403. .INDENT 3.5
  404. .sp
  405. .nf
  406. .ft C
  407. <device id="5SYI2FS\-LW6YAXI\-JJDYETS\-NDBBPIO\-256MWBO\-XDPXWVG\-24QPUM4\-PDW4UQU" name="syno" compression="metadata" introducer="false" skipIntroductionRemovals="false" introducedBy="2CYF2WQ\-AKZO2QZ\-JAKWLYD\-AGHMQUM\-BGXUOIS\-GYILW34\-HJG3DUK\-LRRYQAR">
  408. <address>dynamic</address>
  409. </device>
  410. <device id="2CYF2WQ\-AKZO2QZ\-JAKWLYD\-AGHMQUM\-BGXUOIS\-GYILW34\-HJG3DUK\-LRRYQAR" name="syno local" compression="metadata" introducer="false">
  411. <address>tcp://192.0.2.1:22001</address>
  412. <paused>true<paused>
  413. <allowedNetwork>192.168.0.0/16<allowedNetwork>
  414. </device>
  415. .ft P
  416. .fi
  417. .UNINDENT
  418. .UNINDENT
  419. .sp
  420. One or more \fBdevice\fP elements must be present in the file. Each element
  421. describes a device participating in the cluster. It is customary to include a
  422. \fBdevice\fP element for the local device; Syncthing will currently add one if
  423. it is not present. The following attributes may be set on the \fBdevice\fP
  424. element:
  425. .INDENT 0.0
  426. .TP
  427. .B id
  428. The device ID. This must be written in canonical form, that is without any
  429. spaces or dashes. (mandatory)
  430. .TP
  431. .B name
  432. A friendly name for the device. (optional)
  433. .TP
  434. .B compression
  435. Whether to use protocol compression when sending messages to this device.
  436. The possible values are:
  437. .INDENT 7.0
  438. .TP
  439. .B metadata
  440. Compress metadata packets, such as index information. Metadata is
  441. usually very compression friendly so this is a good default.
  442. .TP
  443. .B always
  444. Compress all packets, including file data. This is recommended if the
  445. folders contents are mainly compressible data such as documents or
  446. text files.
  447. .TP
  448. .B never
  449. Disable all compression.
  450. .UNINDENT
  451. .TP
  452. .B introducer
  453. Set to true if this device should be trusted as an introducer, i.e. we
  454. should copy their list of devices per folder when connecting.
  455. .UNINDENT
  456. .sp
  457. \fBSEE ALSO:\fP
  458. .INDENT 0.0
  459. .INDENT 3.5
  460. introducer
  461. .UNINDENT
  462. .UNINDENT
  463. .INDENT 0.0
  464. .TP
  465. .B skipIntroductionRemovals
  466. Set to true if you wish to follow only introductions and not de\-introductions.
  467. For example, if this is set, we would not remove a device that we were introduced
  468. to even if the original introducer is no longer listing the remote device as known.
  469. .TP
  470. .B introducedBy
  471. Defines which device has introduced us to this device. Used only for following de\-introductions.
  472. .UNINDENT
  473. .sp
  474. From following child elements at least one \fBaddress\fP child must exist.
  475. .INDENT 0.0
  476. .TP
  477. .B address
  478. Contains an address or host name to use when attempting to connect to this device.
  479. Entries other than \fBdynamic\fP must be prefixed with \fBtcp://\fP (dual\-stack),
  480. \fBtcp4://\fP (IPv4 only) or \fBtcp6://\fP (IPv6 only). Note that IP addresses need
  481. not use tcp4/tcp6; these are optional. Accepted formats are:
  482. .INDENT 7.0
  483. .TP
  484. .B IPv4 address (\fBtcp://192.0.2.42\fP)
  485. The default port (22000) is used.
  486. .TP
  487. .B IPv4 address and port (\fBtcp://192.0.2.42:12345\fP)
  488. The address and port is used as given.
  489. .TP
  490. .B IPv6 address (\fBtcp://[2001:db8::23:42]\fP)
  491. The default port (22000) is used. The address must be enclosed in
  492. square brackets.
  493. .TP
  494. .B IPv6 address and port (\fBtcp://[2001:db8::23:42]:12345\fP)
  495. The address and port is used as given. The address must be enclosed in
  496. square brackets.
  497. .TP
  498. .B Host name (\fBtcp6://fileserver\fP)
  499. The host name will be used on the default port (22000) and connections
  500. will be attempted only via IPv6.
  501. .TP
  502. .B Host name and port (\fBtcp://fileserver:12345\fP)
  503. The host name will be used on the given port and connections will be
  504. attempted via both IPv4 and IPv6, depending on name resolution.
  505. .TP
  506. .B \fBdynamic\fP
  507. The word \fBdynamic\fP (without \fBtcp://\fP prefix) means to use local and
  508. global discovery to find the device.
  509. .UNINDENT
  510. .sp
  511. You can set multiple addresses \fIand\fP combine it with the \fBdynamic\fP keyword
  512. for example:
  513. .INDENT 7.0
  514. .INDENT 3.5
  515. .sp
  516. .nf
  517. .ft C
  518. <device id="...">
  519. <address>tcp://192.0.2.1:22001</address>
  520. <address>tcp://192.0.1.254:22000</address>
  521. <address>dynamic</address>
  522. </device>
  523. .ft P
  524. .fi
  525. .UNINDENT
  526. .UNINDENT
  527. .TP
  528. .B paused
  529. True if synchronization with this devices is (temporarily) suspended.
  530. .TP
  531. .B allowedNetwork
  532. If given, this restricts connections to this device to only this network
  533. (see allowed\-networks).
  534. .UNINDENT
  535. .SH GUI ELEMENT
  536. .INDENT 0.0
  537. .INDENT 3.5
  538. .sp
  539. .nf
  540. .ft C
  541. <gui enabled="true" tls="false" debugging="false">
  542. <address>127.0.0.1:8384</address>
  543. <apikey>l7jSbCqPD95JYZ0g8vi4ZLAMg3ulnN1b</apikey>
  544. <theme>default</theme>
  545. </gui>
  546. .ft P
  547. .fi
  548. .UNINDENT
  549. .UNINDENT
  550. .sp
  551. There must be exactly one \fBgui\fP element. The GUI configuration is also used
  552. by the rest\-api and the event\-api\&. The following attributes may
  553. be set on the \fBgui\fP element:
  554. .INDENT 0.0
  555. .TP
  556. .B enabled
  557. If not \fBtrue\fP, the GUI and API will not be started.
  558. .TP
  559. .B tls
  560. If set to \fBtrue\fP, TLS (HTTPS) will be enforced. Non\-HTTPS requests will
  561. be redirected to HTTPS. When this is set to \fBfalse\fP, TLS connections are
  562. still possible but it is not mandatory.
  563. .TP
  564. .B debugging
  565. This enables profiling and additional debugging endpoints in the rest\-api\&.
  566. .UNINDENT
  567. .sp
  568. The following child elements may be present:
  569. .INDENT 0.0
  570. .TP
  571. .B address
  572. Set the listen address. One address element must be present. Allowed address formats are:
  573. .INDENT 7.0
  574. .TP
  575. .B IPv4 address and port (\fB127.0.0.1:8384\fP)
  576. The address and port is used as given.
  577. .TP
  578. .B IPv6 address and port (\fB[::1]:8384\fP)
  579. The address and port is used as given. The address must be enclosed in
  580. square brackets.
  581. .TP
  582. .B Wildcard and port (\fB0.0.0.0:12345\fP, \fB[::]:12345\fP, \fB:12345\fP)
  583. These are equivalent and will result in Syncthing listening on all
  584. interfaces via both IPv4 and IPv6.
  585. .UNINDENT
  586. .TP
  587. .B user
  588. Set to require authentication.
  589. .TP
  590. .B password
  591. Contains the bcrypt hash of the real password.
  592. .TP
  593. .B apikey
  594. If set, this is the API key that enables usage of the REST interface.
  595. .TP
  596. .B insecureAdminAccess
  597. If true, this allows access to the web GUI from outside (i.e. not localhost)
  598. without authorization. A warning will displayed about this setting on startup.
  599. .TP
  600. .B theme
  601. The name of the theme to use.
  602. .UNINDENT
  603. .SH OPTIONS ELEMENT
  604. .INDENT 0.0
  605. .INDENT 3.5
  606. .sp
  607. .nf
  608. .ft C
  609. <options>
  610. <listenAddress>default</listenAddress>
  611. <globalAnnounceServer>default</globalAnnounceServer>
  612. <globalAnnounceEnabled>true</globalAnnounceEnabled>
  613. <localAnnounceEnabled>true</localAnnounceEnabled>
  614. <localAnnouncePort>21027</localAnnouncePort>
  615. <localAnnounceMCAddr>[ff12::8384]:21027</localAnnounceMCAddr>
  616. <maxSendKbps>0</maxSendKbps>
  617. <maxRecvKbps>0</maxRecvKbps>
  618. <reconnectionIntervalS>60</reconnectionIntervalS>
  619. <relaysEnabled>true</relaysEnabled>
  620. <relayReconnectIntervalM>10</relayReconnectIntervalM>
  621. <startBrowser>true</startBrowser>
  622. <natEnabled>true</natEnabled>
  623. <natLeaseMinutes>60</natLeaseMinutes>
  624. <natRenewalMinutes>30</natRenewalMinutes>
  625. <natTimeoutSeconds>10</natTimeoutSeconds>
  626. <urAccepted>0</urAccepted>
  627. <urUniqueID></urUniqueID>
  628. <urURL>https://data.syncthing.net/newdata</urURL>
  629. <urPostInsecurely>false</urPostInsecurely>
  630. <urInitialDelayS>1800</urInitialDelayS>
  631. <restartOnWakeup>true</restartOnWakeup>
  632. <autoUpgradeIntervalH>12</autoUpgradeIntervalH>
  633. <keepTemporariesH>24</keepTemporariesH>
  634. <cacheIgnoredFiles>false</cacheIgnoredFiles>
  635. <progressUpdateIntervalS>5</progressUpdateIntervalS>
  636. <limitBandwidthInLan>false</limitBandwidthInLan>
  637. <minHomeDiskFree unit="%">1</minHomeDiskFree>
  638. <releasesURL>https://api.github.com/repos/syncthing/syncthing/releases?per_page=30</releasesURL>
  639. <overwriteRemoteDeviceNamesOnConnect>false</overwriteRemoteDeviceNamesOnConnect>
  640. <tempIndexMinBlocks>10</tempIndexMinBlocks>
  641. <defaultFolderPath>~</defaultFolderPath>
  642. </options>
  643. .ft P
  644. .fi
  645. .UNINDENT
  646. .UNINDENT
  647. .sp
  648. The \fBoptions\fP element contains all other global configuration options.
  649. .INDENT 0.0
  650. .TP
  651. .B listenAddress
  652. The listen address for incoming sync connections. See
  653. \fI\%Listen Addresses\fP for allowed syntax.
  654. .TP
  655. .B globalAnnounceServer
  656. A URI to a global announce (discovery) server, or the word \fBdefault\fP to
  657. include the default servers. Any number of globalAnnounceServer elements
  658. may be present. The syntax for non\-default entries is that of a HTTP or
  659. HTTPS URL. A number of options may be added as query options to the URL:
  660. \fBinsecure\fP to prevent certificate validation (required for HTTP URLs)
  661. and \fBid=<device ID>\fP to perform certificate pinning. The device ID to
  662. use is printed by the discovery server on startup.
  663. .TP
  664. .B globalAnnounceEnabled
  665. Whether to announce this device to the global announce (discovery) server,
  666. and also use it to look up other devices.
  667. .TP
  668. .B localAnnounceEnabled
  669. Whether to send announcements to the local LAN, also use such
  670. announcements to find other devices.
  671. .TP
  672. .B localAnnouncePort
  673. The port on which to listen and send IPv4 broadcast announcements to.
  674. .TP
  675. .B localAnnounceMCAddr
  676. The group address and port to join and send IPv6 multicast announcements on.
  677. .TP
  678. .B maxSendKbps
  679. Outgoing data rate limit, in kibibytes per second.
  680. .TP
  681. .B maxRecvKbps
  682. Incoming data rate limits, in kibibytes per second.
  683. .TP
  684. .B reconnectionIntervalS
  685. The number of seconds to wait between each attempt to connect to currently
  686. unconnected devices.
  687. .TP
  688. .B relaysEnabled
  689. When true, relays will be connected to and potentially used for device to device connections.
  690. .TP
  691. .B relayReconnectIntervalM
  692. Sets the interval, in minutes, between relay reconnect attempts.
  693. .TP
  694. .B startBrowser
  695. Whether to attempt to start a browser to show the GUI when Syncthing starts.
  696. .TP
  697. .B natEnabled
  698. Whether to attempt to perform a UPnP and NAT\-PMP port mapping for
  699. incoming sync connections.
  700. .TP
  701. .B natLeaseMinutes
  702. Request a lease for this many minutes; zero to request a permanent lease.
  703. .TP
  704. .B natRenewalMinutes
  705. Attempt to renew the lease after this many minutes.
  706. .TP
  707. .B natTimeoutSeconds
  708. When scanning for UPnP devices, wait this long for responses.
  709. .TP
  710. .B urAccepted
  711. Whether the user has accepted to submit anonymous usage data. The default,
  712. \fB0\fP, mean the user has not made a choice, and Syncthing will ask at some
  713. point in the future. \fB\-1\fP means no, a number above zero means that that
  714. version of usage reporting has been accepted.
  715. .TP
  716. .B urSeen
  717. The highest usage reporting version that has already been shown in the web GUI.
  718. .TP
  719. .B urUniqueID
  720. The unique ID sent together with the usage report. Generated when usage
  721. reporting is enabled.
  722. .TP
  723. .B urURL
  724. The URL to post usage report data to, when enabled.
  725. .TP
  726. .B urPostInsecurely
  727. When true, the UR URL can be http instead of https, or have a self\-signed
  728. certificate. The default is \fBfalse\fP\&.
  729. .TP
  730. .B urInitialDelayS
  731. The time to wait from startup to the first usage report being sent. Allows
  732. the system to stabilize before reporting statistics.
  733. .TP
  734. .B restartOnWakeup
  735. Whether to perform a restart of Syncthing when it is detected that we are
  736. waking from sleep mode (i.e. a folded up laptop).
  737. .TP
  738. .B autoUpgradeIntervalH
  739. Check for a newer version after this many hours. Set to zero to disable
  740. automatic upgrades.
  741. .TP
  742. .B upgradeToPreReleases
  743. If true, automatic upgrades include release candidates (see
  744. release\-channels).
  745. .TP
  746. .B keepTemporariesH
  747. Keep temporary failed transfers for this many hours. While the temporaries
  748. are kept, the data they contain need not be transferred again.
  749. .TP
  750. .B cacheIgnoredFiles
  751. Whether to cache the results of ignore pattern evaluation. Performance
  752. at the price of memory. Defaults to \fBfalse\fP as the cost for evaluating
  753. ignores is usually not significant.
  754. .TP
  755. .B progressUpdateIntervalS
  756. How often in seconds the progress of ongoing downloads is made available to
  757. the GUI.
  758. .TP
  759. .B limitBandwidthInLan
  760. Whether to apply bandwidth limits to devices in the same broadcast domain
  761. as the local device.
  762. .TP
  763. .B minHomeDiskFree
  764. The minimum required free space that should be available on the
  765. partition holding the configuration and index. Accepted units are \fB%\fP, \fBkB\fP,
  766. \fBMB\fP, \fBGB\fP and \fBTB\fP\&.
  767. .TP
  768. .B releasesURL
  769. The URL from which release information is loaded, for automatic upgrades.
  770. .TP
  771. .B alwaysLocalNet
  772. Network that should be considered as local given in CIDR notation.
  773. .TP
  774. .B overwriteRemoteDeviceNamesOnConnect
  775. If set, device names will always be overwritten with the name given by
  776. remote on each connection. By default, the name that the remote device
  777. announces will only be adopted when a name has not already been set.
  778. .TP
  779. .B tempIndexMinBlocks
  780. When exchanging index information for incomplete transfers, only take
  781. into account files that have at least this many blocks.
  782. .TP
  783. .B unackedNotificationID
  784. ID of a notification to be displayed in the web GUI. Will be removed once
  785. the user acknowledged it (e.g. an transition notice on an upgrade).
  786. .TP
  787. .B trafficClass
  788. Specify a type of service (TOS)/traffic class of outgoing packets.
  789. .TP
  790. .B weakHashSelectionMethod
  791. Specify whether weak hashing is used, possible options are
  792. \fBWeakHashAlways\fP, \fBWeakHashNever\fP and \fBWeakHashAuto\fP\&. Deciding
  793. automatically means running benchmarks at startup to decide whether the
  794. performance impact is acceptable (this is the default).
  795. .TP
  796. .B stunServer
  797. Server to be used for STUN, given as ip:port. The keyword \fBdefault\fP gets
  798. expanded to
  799. \fBstun.callwithus.com:3478\fP, \fBstun.counterpath.com:3478\fP,
  800. \fBstun.counterpath.net:3478\fP, \fBstun.ekiga.net:3478\fP,
  801. \fBstun.ideasip.com:3478\fP, \fBstun.internetcalls.com:3478\fP,
  802. \fBstun.schlund.de:3478\fP, \fBstun.sipgate.net:10000\fP,
  803. \fBstun.sipgate.net:3478\fP, \fBstun.voip.aebc.com:3478\fP,
  804. \fBstun.voiparound.com:3478\fP, \fBstun.voipbuster.com:3478\fP,
  805. \fBstun.voipstunt.com:3478\fP, \fBstun.voxgratia.org:3478\fP and
  806. \fBstun.xten.com:3478\fP (this is the default).
  807. .TP
  808. .B stunKeepaliveSeconds
  809. Interval in seconds between contacting a STUN server to
  810. maintain NAT mapping. Default is \fB24\fP and you can set it to \fB0\fP to
  811. disable contacting STUN servers.
  812. .TP
  813. .B kcpNoDelay, kcpUpdateIntervalMs, kcpFastResend, kcpCongestionControl, kcpSendWindowSize, kcpReceiveWindowSize
  814. Various KCP tweaking parameters.
  815. .TP
  816. .B defaultFolderPath
  817. The UI will propose to create new folders at this path. This can be disabled by
  818. setting this to an empty string.
  819. .UNINDENT
  820. .INDENT 0.0
  821. .TP
  822. .B setLowPriority
  823. Syncthing will attempt to lower its process priority at startup.
  824. Specifically: on Linux, set itself to a separate process group, set the
  825. niceness level of that process group to nine and the I/O priority to
  826. best effort level five; on other Unixes, set the process niceness level
  827. to nine; on Windows, set the process priority class to below normal. To
  828. disable this behavior, for example to control process priority yourself
  829. as part of launching Syncthing, set this option to \fBfalse\fP\&.
  830. .UNINDENT
  831. .SS Listen Addresses
  832. .sp
  833. The following address types are accepted in sync protocol listen addresses:
  834. .INDENT 0.0
  835. .TP
  836. .B Default listen addresses (\fBdefault\fP)
  837. This is equivalent to \fBtcp://0.0.0.0:22000\fP and
  838. \fBdynamic+https://relays.syncthing.net/endpoint\fP\&.
  839. .TP
  840. .B TCP wildcard and port (\fBtcp://0.0.0.0:22000\fP, \fBtcp://:22000\fP)
  841. These are equivalent and will result in Syncthing listening on all
  842. interfaces, IPv4 and IPv6, on the specified port.
  843. .TP
  844. .B TCP IPv4 wildcard and port (\fBtcp4://0.0.0.0:22000\fP, \fBtcp4://:22000\fP)
  845. These are equivalent and will result in Syncthing listening on all
  846. interfaces via IPv4 only.
  847. .TP
  848. .B TCP IPv4 address and port (\fBtcp4://192.0.2.1:22000\fP)
  849. This results in Syncthing listening on the specified address and port, IPv4
  850. only.
  851. .TP
  852. .B TCP IPv6 wildcard and port (\fBtcp6://[::]:22000\fP, \fBtcp6://:22000\fP)
  853. These are equivalent and will result in Syncthing listening on all
  854. interfaces via IPv6 only.
  855. .TP
  856. .B TCP IPv6 address and port (\fBtcp6://[2001:db8::42]:22000\fP)
  857. This results in Syncthing listening on the specified address and port, IPv6
  858. only.
  859. .TP
  860. .B Static relay address (\fBrelay://192.0.2.42:22067?id=abcd123...\fP)
  861. Syncthing will connect to and listen for incoming connections via the
  862. specified relay address.
  863. .INDENT 7.0
  864. .INDENT 3.5
  865. .SS Todo
  866. .sp
  867. Document available URL parameters.
  868. .UNINDENT
  869. .UNINDENT
  870. .TP
  871. .B Dynamic relay pool (\fBdynamic+https://192.0.2.42/relays\fP)
  872. Syncthing will fetch the specified HTTPS URL, parse it for a JSON payload
  873. describing relays, select a relay from the available ones and listen via
  874. that as if specified as a static relay above.
  875. .INDENT 7.0
  876. .INDENT 3.5
  877. .SS Todo
  878. .sp
  879. Document available URL parameters.
  880. .UNINDENT
  881. .UNINDENT
  882. .UNINDENT
  883. .SH SYNCING CONFIGURATION FILES
  884. .sp
  885. Syncing configuration files between devices (such that multiple devices are
  886. using the same configuration files) can cause issues. This is easy to do
  887. accidentally if you sync your home folder between devices. A common symptom
  888. of syncing configuration files is two devices ending up with the same Device ID.
  889. .sp
  890. If you want to use Syncthing to backup your configuration files, it is recommended
  891. that the files you are backing up are in a folder\-sendonly to prevent other
  892. devices from overwriting the per device configuration. The folder on the remote
  893. device(s) should not be used as configuration for the remote devices.
  894. .sp
  895. If you’d like to sync your home folder in non\-send only mode, you may add the
  896. folder that stores the configuration files to the ignore list\&.
  897. If you’d also like to backup your configuration files, add another folder in
  898. send only mode for just the configuration folder.
  899. .SH AUTHOR
  900. The Syncthing Authors
  901. .SH COPYRIGHT
  902. 2014-2018, The Syncthing Authors
  903. .\" Generated by docutils manpage writer.
  904. .