syncthing-config.5 30 KB

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