syncthing-config.5 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .
  4. .nr rst2man-indent-level 0
  5. .
  6. .de1 rstReportMargin
  7. \\$1 \\n[an-margin]
  8. level \\n[rst2man-indent-level]
  9. level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
  10. -
  11. \\n[rst2man-indent0]
  12. \\n[rst2man-indent1]
  13. \\n[rst2man-indent2]
  14. ..
  15. .de1 INDENT
  16. .\" .rstReportMargin pre:
  17. . RS \\$1
  18. . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
  19. . nr rst2man-indent-level +1
  20. .\" .rstReportMargin post:
  21. ..
  22. .de UNINDENT
  23. . RE
  24. .\" indent \\n[an-margin]
  25. .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
  26. .nr rst2man-indent-level -1
  27. .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
  28. .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
  29. ..
  30. .TH "SYNCTHING-CONFIG" "5" "Jul 17, 2021" "v1" "Syncthing"
  31. .SH NAME
  32. syncthing-config \- Syncthing Configuration
  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. %LOCALAPPDATA%\eSyncthing
  42. .ft P
  43. .fi
  44. .UNINDENT
  45. .UNINDENT
  46. .SH DESCRIPTION
  47. .sp
  48. New in version 1.5.0: Database and config can now be set separately. Previously the database was
  49. always located in the same directory as the config.
  50. .sp
  51. Syncthing uses a single directory to store configuration and crypto keys.
  52. Syncthing also has a database, which is often stored in this directory too.
  53. The config location defaults to \fB$HOME/.config/syncthing\fP
  54. (Unix\-like), \fB$HOME/Library/Application Support/Syncthing\fP (Mac),
  55. or \fB%LOCALAPPDATA%\eSyncthing\fP (Windows). It can be changed at runtime
  56. using the \fB\-\-config\fP flag. In this directory the following files are
  57. located:
  58. .INDENT 0.0
  59. .TP
  60. .B \fBconfig.xml\fP
  61. The configuration file, in XML format.
  62. .TP
  63. .B \fBcert.pem\fP, \fBkey.pem\fP
  64. The device’s ECDSA public and private key. These form the basis for the
  65. device ID. The key must be kept private.
  66. .TP
  67. .B \fBhttps\-cert.pem\fP, \fBhttps\-key.pem\fP
  68. The certificate and key for HTTPS GUI connections. These may be replaced
  69. with a custom certificate for HTTPS as desired.
  70. .TP
  71. .B \fBcsrftokens.txt\fP
  72. A list of recently issued CSRF tokens (for protection against browser cross
  73. site request forgery).
  74. .UNINDENT
  75. .sp
  76. The database is stored either in the same directory as the config (usually the
  77. default), but may also be located in one of the following directories (Unix\-like
  78. platforms only):
  79. .INDENT 0.0
  80. .IP \(bu 2
  81. If a database exists in the old default location, that location is
  82. still used.
  83. .IP \(bu 2
  84. If \fB$XDG_DATA_HOME\fP is set, use \fB$XDG_DATA_HOME/syncthing\fP\&.
  85. .IP \(bu 2
  86. If \fB~/.local/share/syncthing\fP exists, use that location.
  87. .IP \(bu 2
  88. Use the old default location (same as config).
  89. .UNINDENT
  90. .sp
  91. The location of the database can be changed using the \fB\-\-data\fP flag. The
  92. \fB\-\-home\fP flag sets both config and database locations at the same time.
  93. The database contains the following files:
  94. .INDENT 0.0
  95. .TP
  96. .B \fBindex\-\fP\fI*\fP\fB\&.db\fP
  97. A directory holding the database with metadata and hashes of the files
  98. currently on disk and available from peers.
  99. .UNINDENT
  100. .SH CONFIG FILE FORMAT
  101. .sp
  102. The following shows an example of a default configuration file (IDs will differ):
  103. .sp
  104. \fBNOTE:\fP
  105. .INDENT 0.0
  106. .INDENT 3.5
  107. The config examples are present for illustration. Do \fBnot\fP copy them
  108. entirely to use as your config. They are likely out\-of\-date and the values
  109. may no longer correspond to the defaults.
  110. .UNINDENT
  111. .UNINDENT
  112. .INDENT 0.0
  113. .INDENT 3.5
  114. .sp
  115. .nf
  116. .ft C
  117. <configuration version="30">
  118. <folder id="default" label="Default Folder" path="/Users/jb/Sync/" type="sendreceive" rescanIntervalS="3600" fsWatcherEnabled="true" fsWatcherDelayS="10" ignorePerms="false" autoNormalize="true">
  119. <filesystemType>basic</filesystemType>
  120. <device id="3LT2GA5\-CQI4XJM\-WTZ264P\-MLOGMHL\-MCRLDNT\-MZV4RD3\-KA745CL\-OGAERQZ"></device>
  121. <minDiskFree unit="%">1</minDiskFree>
  122. <versioning></versioning>
  123. <copiers>0</copiers>
  124. <pullerMaxPendingKiB>0</pullerMaxPendingKiB>
  125. <hashers>0</hashers>
  126. <order>random</order>
  127. <ignoreDelete>false</ignoreDelete>
  128. <scanProgressIntervalS>0</scanProgressIntervalS>
  129. <pullerPauseS>0</pullerPauseS>
  130. <maxConflicts>\-1</maxConflicts>
  131. <disableSparseFiles>false</disableSparseFiles>
  132. <disableTempIndexes>false</disableTempIndexes>
  133. <paused>false</paused>
  134. <weakHashThresholdPct>25</weakHashThresholdPct>
  135. <markerName>.stfolder</markerName>
  136. <copyOwnershipFromParent>false</copyOwnershipFromParent>
  137. <modTimeWindowS>0</modTimeWindowS>
  138. <maxConcurrentWrites>2</maxConcurrentWrites>
  139. <disableFsync>false</disableFsync>
  140. <blockPullOrder>standard</blockPullOrder>
  141. <copyRangeMethod>standard</copyRangeMethod>
  142. </folder>
  143. <device id="3LT2GA5\-CQI4XJM\-WTZ264P\-MLOGMHL\-MCRLDNT\-MZV4RD3\-KA745CL\-OGAERQZ" name="syno" compression="metadata" introducer="false" skipIntroductionRemovals="false" introducedBy="">
  144. <address>dynamic</address>
  145. <paused>false</paused>
  146. <autoAcceptFolders>false</autoAcceptFolders>
  147. <maxSendKbps>0</maxSendKbps>
  148. <maxRecvKbps>0</maxRecvKbps>
  149. <maxRequestKiB>0</maxRequestKiB>
  150. <remoteGUIPort>0</remoteGUIPort>
  151. </device>
  152. <gui enabled="true" tls="false" debugging="false">
  153. <address>127.0.0.1:8384</address>
  154. <apikey>k1dnz1Dd0rzTBjjFFh7CXPnrF12C49B1</apikey>
  155. <theme>default</theme>
  156. </gui>
  157. <ldap></ldap>
  158. <options>
  159. <listenAddress>default</listenAddress>
  160. <globalAnnounceServer>default</globalAnnounceServer>
  161. <globalAnnounceEnabled>true</globalAnnounceEnabled>
  162. <localAnnounceEnabled>true</localAnnounceEnabled>
  163. <localAnnouncePort>21027</localAnnouncePort>
  164. <localAnnounceMCAddr>[ff12::8384]:21027</localAnnounceMCAddr>
  165. <maxSendKbps>0</maxSendKbps>
  166. <maxRecvKbps>0</maxRecvKbps>
  167. <reconnectionIntervalS>60</reconnectionIntervalS>
  168. <relaysEnabled>true</relaysEnabled>
  169. <relayReconnectIntervalM>10</relayReconnectIntervalM>
  170. <startBrowser>true</startBrowser>
  171. <natEnabled>true</natEnabled>
  172. <natLeaseMinutes>60</natLeaseMinutes>
  173. <natRenewalMinutes>30</natRenewalMinutes>
  174. <natTimeoutSeconds>10</natTimeoutSeconds>
  175. <urAccepted>0</urAccepted>
  176. <urSeen>0</urSeen>
  177. <urUniqueID></urUniqueID>
  178. <urURL>https://data.syncthing.net/newdata</urURL>
  179. <urPostInsecurely>false</urPostInsecurely>
  180. <urInitialDelayS>1800</urInitialDelayS>
  181. <restartOnWakeup>true</restartOnWakeup>
  182. <autoUpgradeIntervalH>12</autoUpgradeIntervalH>
  183. <upgradeToPreReleases>false</upgradeToPreReleases>
  184. <keepTemporariesH>24</keepTemporariesH>
  185. <cacheIgnoredFiles>false</cacheIgnoredFiles>
  186. <progressUpdateIntervalS>5</progressUpdateIntervalS>
  187. <limitBandwidthInLan>false</limitBandwidthInLan>
  188. <minHomeDiskFree unit="%">1</minHomeDiskFree>
  189. <releasesURL>https://upgrades.syncthing.net/meta.json</releasesURL>
  190. <overwriteRemoteDeviceNamesOnConnect>false</overwriteRemoteDeviceNamesOnConnect>
  191. <tempIndexMinBlocks>10</tempIndexMinBlocks>
  192. <trafficClass>0</trafficClass>
  193. <defaultFolderPath>~</defaultFolderPath>
  194. <setLowPriority>true</setLowPriority>
  195. <maxFolderConcurrency>0</maxFolderConcurrency>
  196. <crashReportingURL>https://crash.syncthing.net/newcrash</crashReportingURL>
  197. <crashReportingEnabled>true</crashReportingEnabled>
  198. <stunKeepaliveStartS>180</stunKeepaliveStartS>
  199. <stunKeepaliveMinS>20</stunKeepaliveMinS>
  200. <stunServer>default</stunServer>
  201. <databaseTuning>auto</databaseTuning>
  202. <maxConcurrentIncomingRequestKiB>0</maxConcurrentIncomingRequestKiB>
  203. </options>
  204. </configuration>
  205. .ft P
  206. .fi
  207. .UNINDENT
  208. .UNINDENT
  209. .SH CONFIGURATION ELEMENT
  210. .INDENT 0.0
  211. .INDENT 3.5
  212. .sp
  213. .nf
  214. .ft C
  215. <configuration version="30">
  216. <folder></folder>
  217. <device></device>
  218. <gui></gui>
  219. <ldap></ldap>
  220. <options></options>
  221. <ignoredDevice>5SYI2FS\-LW6YAXI\-JJDYETS\-NDBBPIO\-256MWBO\-XDPXWVG\-24QPUM4\-PDW4UQU</ignoredDevice>
  222. <ignoredFolder>bd7q3\-zskm5</ignoredFolder>
  223. </configuration>
  224. .ft P
  225. .fi
  226. .UNINDENT
  227. .UNINDENT
  228. .sp
  229. This is the root element. It has one attribute:
  230. .INDENT 0.0
  231. .TP
  232. .B version
  233. The config version. Increments whenever a change is made that requires
  234. migration from previous formats.
  235. .UNINDENT
  236. .sp
  237. It contains the elements described in the following sections and these two
  238. additional child elements:
  239. .INDENT 0.0
  240. .TP
  241. .B ignoredDevice
  242. Contains the ID of the device that should be ignored. Connection attempts
  243. from this device are logged to the console but never displayed in the web
  244. GUI.
  245. .TP
  246. .B ignoredFolder
  247. Contains the ID of the folder that should be ignored. This folder will
  248. always be skipped when advertised from a remote device, i.e. this will be
  249. logged, but there will be no dialog about it in the web GUI.
  250. .UNINDENT
  251. .SH FOLDER ELEMENT
  252. .INDENT 0.0
  253. .INDENT 3.5
  254. .sp
  255. .nf
  256. .ft C
  257. <folder id="default" label="Default Folder" path="/Users/jb/Sync/" type="sendreceive" rescanIntervalS="3600" fsWatcherEnabled="true" fsWatcherDelayS="10" ignorePerms="false" autoNormalize="true">
  258. <filesystemType>basic</filesystemType>
  259. <device id="3LT2GA5\-CQI4XJM\-WTZ264P\-MLOGMHL\-MCRLDNT\-MZV4RD3\-KA745CL\-OGAERQZ"></device>
  260. <minDiskFree unit="%">1</minDiskFree>
  261. <versioning></versioning>
  262. <copiers>0</copiers>
  263. <pullerMaxPendingKiB>0</pullerMaxPendingKiB>
  264. <hashers>0</hashers>
  265. <order>random</order>
  266. <ignoreDelete>false</ignoreDelete>
  267. <scanProgressIntervalS>0</scanProgressIntervalS>
  268. <pullerPauseS>0</pullerPauseS>
  269. <maxConflicts>\-1</maxConflicts>
  270. <disableSparseFiles>false</disableSparseFiles>
  271. <disableTempIndexes>false</disableTempIndexes>
  272. <paused>false</paused>
  273. <weakHashThresholdPct>25</weakHashThresholdPct>
  274. <markerName>.stfolder</markerName>
  275. <copyOwnershipFromParent>false</copyOwnershipFromParent>
  276. <modTimeWindowS>0</modTimeWindowS>
  277. <maxConcurrentWrites>2</maxConcurrentWrites>
  278. <disableFsync>false</disableFsync>
  279. <blockPullOrder>standard</blockPullOrder>
  280. <copyRangeMethod>standard</copyRangeMethod>
  281. </folder>
  282. .ft P
  283. .fi
  284. .UNINDENT
  285. .UNINDENT
  286. .sp
  287. One or more \fBfolder\fP elements must be present in the file. Each element
  288. describes one folder. The following attributes may be set on the \fBfolder\fP
  289. element:
  290. .INDENT 0.0
  291. .TP
  292. .B id
  293. The folder ID, must be unique. (mandatory)
  294. .TP
  295. .B label
  296. The label of a folder is a human readable and descriptive local name. May
  297. be different on each device, empty, and/or identical to other folder
  298. labels. (optional)
  299. .TP
  300. .B path
  301. The path to the directory where the folder is stored on this
  302. device; not sent to other devices. (mandatory)
  303. .TP
  304. .B type
  305. Controls how the folder is handled by Syncthing. Possible values are:
  306. .INDENT 7.0
  307. .TP
  308. .B sendreceive
  309. The folder is in default mode. Sending local and accepting remote changes.
  310. Note that this type was previously called “readwrite” which is deprecated
  311. but still accepted in incoming configs.
  312. .TP
  313. .B sendonly
  314. The folder is in “send only” mode – it will not be modified by
  315. Syncthing on this device.
  316. Note that this type was previously called “readonly” which is deprecated
  317. but still accepted in incoming configs.
  318. .TP
  319. .B receiveonly
  320. The folder is in “receive only” mode – it will not propagate
  321. changes to other devices.
  322. .UNINDENT
  323. .TP
  324. .B rescanIntervalS
  325. The rescan interval, in seconds. Can be set to zero to disable when external
  326. plugins are used to trigger rescans.
  327. .TP
  328. .B fsWatcherEnabled
  329. If enabled this detects changes to files in the folder and scans them.
  330. .UNINDENT
  331. .INDENT 0.0
  332. .TP
  333. .B fsWatcherDelayS
  334. The duration during which changes detected are accumulated, before a scan is
  335. scheduled (only takes effect if \fBfsWatcherEnabled\fP is true).
  336. .TP
  337. .B ignorePerms
  338. True if the folder should ignore permissions.
  339. .TP
  340. .B autoNormalize
  341. Automatically correct UTF\-8 normalization errors found in file names.
  342. .UNINDENT
  343. .sp
  344. The following child elements may exist:
  345. .INDENT 0.0
  346. .TP
  347. .B device
  348. These must have the \fBid\fP attribute and can have an \fBintroducedBy\fP attribute,
  349. identifying the device that introduced us to share this folder with the given device.
  350. If the original introducer unshares this folder with this device, our device will follow
  351. and unshare the folder (subject to skipIntroductionRemovals being false on the introducer device).
  352. All mentioned devices are those that will be sharing the folder in question.
  353. Each mentioned device must have a separate \fBdevice\fP element later in the file.
  354. It is customary that the local device ID is included in all folders.
  355. Syncthing will currently add this automatically if it is not present in
  356. the configuration file.
  357. .TP
  358. .B minDiskFree
  359. The minimum required free space that should be available on the disk this folder
  360. resides. The folder will be stopped when the value drops below the threshold. Accepted units are
  361. \fB%\fP, \fBkB\fP, \fBMB\fP, \fBGB\fP and \fBTB\fP\&. Set to zero to disable.
  362. .TP
  363. .B versioning
  364. Specifies a versioning configuration.
  365. .UNINDENT
  366. .sp
  367. \fBSEE ALSO:\fP
  368. .INDENT 0.0
  369. .INDENT 3.5
  370. versioning
  371. .UNINDENT
  372. .UNINDENT
  373. .INDENT 0.0
  374. .TP
  375. .B copiers, pullers, hashers
  376. The number of copier, puller and hasher routines to use, or zero for the
  377. system determined optimum. These are low level performance options for
  378. advanced users only; do not change unless requested to or you’ve actually
  379. read and understood the code yourself. :)
  380. .TP
  381. .B order
  382. The order in which needed files should be pulled from the cluster.
  383. The possibles values are:
  384. .INDENT 7.0
  385. .TP
  386. .B random
  387. Pull files in random order. This optimizes for balancing resources among
  388. the devices in a cluster.
  389. .TP
  390. .B alphabetic
  391. Pull files ordered by file name alphabetically.
  392. .TP
  393. .B smallestFirst, largestFirst
  394. Pull files ordered by file size; smallest and largest first respectively.
  395. .TP
  396. .B oldestFirst, newestFirst
  397. Pull files ordered by modification time; oldest and newest first
  398. respectively.
  399. .UNINDENT
  400. .sp
  401. Note that the scanned files are sent in batches and the sorting is applied
  402. only to the already discovered files. This means the sync might start with
  403. a 1 GB file even if there is 1 KB file available on the source device until
  404. the 1 KB becomes known to the pulling device.
  405. .TP
  406. .B ignoreDelete
  407. .
  408. \fBWARNING:\fP
  409. .INDENT 7.0
  410. .INDENT 3.5
  411. Enabling this is highly not recommended \- use at your own risk.
  412. .UNINDENT
  413. .UNINDENT
  414. .sp
  415. When set to true, this device will pretend not to see instructions to
  416. delete files from other devices.
  417. .TP
  418. .B scanProgressIntervalS
  419. The interval with which scan progress information is sent to the GUI. Zero
  420. means the default value (two seconds).
  421. .TP
  422. .B pullerPauseS
  423. Tweak for rate limiting the puller when it retries pulling files. Don’t
  424. change these unless you know what you’re doing.
  425. .TP
  426. .B maxConflicts
  427. The maximum number of conflict copies to keep around for any given file.
  428. The default, \-1, means an unlimited number. Setting this to zero disables
  429. conflict copies altogether.
  430. .TP
  431. .B disableSparseFiles
  432. By default, blocks containing all zeroes are not written, causing files
  433. to be sparse on filesystems that support the concept. When set to true,
  434. sparse files will not be created.
  435. .TP
  436. .B disableTempIndexes
  437. By default, devices exchange information about blocks available in
  438. transfers that are still in progress, which allows other devices to
  439. download parts of files that are not yet fully downloaded on your own
  440. device, essentially making transfers more torrent like. When set to
  441. true, such information is not exchanged for this folder.
  442. .TP
  443. .B paused
  444. True if this folder is (temporarily) suspended.
  445. .TP
  446. .B weakHashThresholdPct
  447. Use weak hash if more than the given percentage of the file has changed. Set
  448. to \-1 to always use weak hash. Default value is 25.
  449. .TP
  450. .B markerName
  451. Name of a directory or file in the folder root to be used as
  452. marker\-faq\&. Default is “.stfolder”.
  453. .TP
  454. .B copyOwnershipFromParent
  455. On Unix systems, tries to copy file/folder ownership from the parent directory (the directory it’s located in).
  456. Requires running Syncthing as privileged user, or granting it additional capabilities (e.g. CAP_CHOWN on Linux).
  457. .TP
  458. .B modTimeWindowS
  459. Allowed modification timestamp difference when comparing files for
  460. equivalence. To be used on file systems which have unstable
  461. modification timestamps that might change after being recorded
  462. during the last write operation. Defaults to 2 on Android when the
  463. folder is located on a FAT partition, and always to 0 elsewhere.
  464. .TP
  465. .B maxConcurrentWrites
  466. Maximum number of concurrent write operations while syncing. Defaults to 2. Increasing this might increase or
  467. decrease disk performance, depending on the underlying storage.
  468. .UNINDENT
  469. .sp
  470. disableFsync
  471. .INDENT 0.0
  472. .INDENT 3.5
  473. .sp
  474. \fBWARNING:\fP
  475. .INDENT 0.0
  476. .INDENT 3.5
  477. This is a known insecure option \- use at your own risk.
  478. .UNINDENT
  479. .UNINDENT
  480. .sp
  481. Disables committing file operations to disk before recording them in the database.
  482. Disabling fsync can lead to data corruption.
  483. .UNINDENT
  484. .UNINDENT
  485. .INDENT 0.0
  486. .TP
  487. .B blockPullOrder
  488. Order in which the blocks of a file are downloaded. This option controls how quickly different parts of the
  489. file spread between the connected devices, at the cost of causing strain on the storage.
  490. .sp
  491. Available options:
  492. .INDENT 7.0
  493. .TP
  494. .B standard (default):
  495. The blocks of a file are split into N equal continuous sequences, where N is the number of connected
  496. devices. Each device starts downloading it’s own sequence, after which it picks other devices
  497. sequences at random. Provides acceptable data distribution and minimal spinning disk strain.
  498. .TP
  499. .B random:
  500. The blocks of a file are downloaded in a random order. Provides great data distribution, but very taxing on
  501. spinning disk drives.
  502. .TP
  503. .B inOrder:
  504. The blocks of a file are downloaded sequentially, from start to finish. Spinning disk drive friendly, but provides
  505. no improvements to data distribution.
  506. .UNINDENT
  507. .TP
  508. .B copyRangeMethod
  509. Provides a choice of method for copying data between files. This can be used to optimise copies on network
  510. filesystems, improve speed of large copies or clone the data using copy\-on\-write functionality if the underlying
  511. filesystem supports it.
  512. .sp
  513. See folder\-copyRangeMethod for details.
  514. .UNINDENT
  515. .SH DEVICE ELEMENT
  516. .INDENT 0.0
  517. .INDENT 3.5
  518. .sp
  519. .nf
  520. .ft C
  521. <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">
  522. <address>dynamic</address>
  523. <paused>false</paused>
  524. <autoAcceptFolders>false</autoAcceptFolders>
  525. <maxSendKbps>0</maxSendKbps>
  526. <maxRecvKbps>0</maxRecvKbps>
  527. <maxRequestKiB>0</maxRequestKiB>
  528. <remoteGUIPort>0</remoteGUIPort>
  529. </device>
  530. <device id="2CYF2WQ\-AKZO2QZ\-JAKWLYD\-AGHMQUM\-BGXUOIS\-GYILW34\-HJG3DUK\-LRRYQAR" name="syno local" compression="metadata" introducer="false" skipIntroductionRemovals="false" introducedBy="">
  531. <address>tcp://192.0.2.1:22001</address>
  532. <paused>true</paused>
  533. <allowedNetwork>192.168.0.0/16</allowedNetwork>
  534. <autoAcceptFolders>false</autoAcceptFolders>
  535. <maxSendKbps>100</maxSendKbps>
  536. <maxRecvKbps>100</maxRecvKbps>
  537. <maxRequestKiB>65536</maxRequestKiB>
  538. <remoteGUIPort>8384</remoteGUIPort>
  539. </device>
  540. .ft P
  541. .fi
  542. .UNINDENT
  543. .UNINDENT
  544. .sp
  545. One or more \fBdevice\fP elements must be present in the file. Each element
  546. describes a device participating in the cluster. It is customary to include a
  547. \fBdevice\fP element for the local device; Syncthing will currently add one if
  548. it is not present. The following attributes may be set on the \fBdevice\fP
  549. element:
  550. .INDENT 0.0
  551. .TP
  552. .B id
  553. The device ID\&. (mandatory)
  554. .TP
  555. .B name
  556. A friendly name for the device. (optional)
  557. .TP
  558. .B compression
  559. Whether to use protocol compression when sending messages to this device.
  560. The possible values are:
  561. .INDENT 7.0
  562. .TP
  563. .B metadata
  564. Compress metadata packets, such as index information. Metadata is
  565. usually very compression friendly so this is a good default.
  566. .TP
  567. .B always
  568. Compress all packets, including file data. This is recommended if the
  569. folders contents are mainly compressible data such as documents or
  570. text files.
  571. .TP
  572. .B never
  573. Disable all compression.
  574. .UNINDENT
  575. .TP
  576. .B introducer
  577. Set to true if this device should be trusted as an introducer, i.e. we
  578. should copy their list of devices per folder when connecting.
  579. .UNINDENT
  580. .sp
  581. \fBSEE ALSO:\fP
  582. .INDENT 0.0
  583. .INDENT 3.5
  584. introducer
  585. .UNINDENT
  586. .UNINDENT
  587. .INDENT 0.0
  588. .TP
  589. .B skipIntroductionRemovals
  590. Set to true if you wish to follow only introductions and not de\-introductions.
  591. For example, if this is set, we would not remove a device that we were introduced
  592. to even if the original introducer is no longer listing the remote device as known.
  593. .TP
  594. .B introducedBy
  595. Defines which device has introduced us to this device. Used only for following de\-introductions.
  596. .TP
  597. .B certName
  598. The device certificate common name, if it is not the default “syncthing”.
  599. .UNINDENT
  600. .sp
  601. From following child elements at least one \fBaddress\fP child must exist.
  602. .INDENT 0.0
  603. .TP
  604. .B address
  605. Contains an address or host name to use when attempting to connect to this device.
  606. Entries other than \fBdynamic\fP need a protocol specific prefix. For the TCP protocol
  607. the prefixes \fBtcp://\fP (dual\-stack), \fBtcp4://\fP (IPv4 only) or \fBtcp6://\fP (IPv6 only) can be used.
  608. The prefixes for the QUIC protocol are analogous: \fBquic://\fP, \fBquic4://\fP and \fBquic6://\fP
  609. Note that IP addresses need not use IPv4 or IPv6 prefixes; these are optional. Accepted formats are:
  610. .INDENT 7.0
  611. .TP
  612. .B IPv4 address (\fBtcp://192.0.2.42\fP)
  613. The default port (22000) is used.
  614. .TP
  615. .B IPv4 address and port (\fBtcp://192.0.2.42:12345\fP)
  616. The address and port is used as given.
  617. .TP
  618. .B IPv6 address (\fBtcp://[2001:db8::23:42]\fP)
  619. The default port (22000) is used. The address must be enclosed in
  620. square brackets.
  621. .TP
  622. .B IPv6 address and port (\fBtcp://[2001:db8::23:42]:12345\fP)
  623. The address and port is used as given. The address must be enclosed in
  624. square brackets.
  625. .TP
  626. .B Host name (\fBtcp6://fileserver\fP)
  627. The host name will be used on the default port (22000) and connections
  628. will be attempted only via IPv6.
  629. .TP
  630. .B Host name and port (\fBtcp://fileserver:12345\fP)
  631. The host name will be used on the given port and connections will be
  632. attempted via both IPv4 and IPv6, depending on name resolution.
  633. .TP
  634. .B \fBdynamic\fP
  635. The word \fBdynamic\fP (without any prefix) means to use local and
  636. global discovery to find the device.
  637. .UNINDENT
  638. .sp
  639. You can set multiple addresses \fIand\fP combine it with the \fBdynamic\fP keyword
  640. for example:
  641. .INDENT 7.0
  642. .INDENT 3.5
  643. .sp
  644. .nf
  645. .ft C
  646. <device id="...">
  647. <address>tcp://192.0.2.1:22001</address>
  648. <address>quic://192.0.1.254:22000</address>
  649. <address>dynamic</address>
  650. </device>
  651. .ft P
  652. .fi
  653. .UNINDENT
  654. .UNINDENT
  655. .TP
  656. .B paused
  657. True if synchronization with this devices is (temporarily) suspended.
  658. .TP
  659. .B allowedNetwork
  660. If given, this restricts connections to this device to only this network
  661. (see allowed\-networks).
  662. .TP
  663. .B maxSendKbps
  664. Maximum send rate to use for this device. Unit is kibibytes/second, despite
  665. the config name looking like kilobits/second.
  666. .TP
  667. .B maxRecvKbps
  668. Maximum receive rate to use for this device. Unit is kibibytes/second,
  669. despite the config name looking like kilobits/second.
  670. .TP
  671. .B maxRequestKiB
  672. Maximum amount of data to have outstanding in requests towards this device.
  673. Unit is kibibytes.
  674. .TP
  675. .B remoteGUIPort
  676. If set to a positive integer, the GUI will display an HTTP link to the IP
  677. address which is currently used for synchronization. Only the TCP port is
  678. exchanged for the value specified here. Note that any port forwarding or
  679. firewall settings need to be done manually and the link will probably not
  680. work for link\-local IPv6 addresses because of modern browser limitations.
  681. .UNINDENT
  682. .SH GUI ELEMENT
  683. .INDENT 0.0
  684. .INDENT 3.5
  685. .sp
  686. .nf
  687. .ft C
  688. <gui enabled="true" tls="false" debugging="false">
  689. <address>127.0.0.1:8384</address>
  690. <apikey>l7jSbCqPD95JYZ0g8vi4ZLAMg3ulnN1b</apikey>
  691. <theme>default</theme>
  692. </gui>
  693. .ft P
  694. .fi
  695. .UNINDENT
  696. .UNINDENT
  697. .sp
  698. There must be exactly one \fBgui\fP element. The GUI configuration is also used
  699. by the rest\-api and the event\-api\&. The following attributes may
  700. be set on the \fBgui\fP element:
  701. .INDENT 0.0
  702. .TP
  703. .B enabled
  704. If not \fBtrue\fP, the GUI and API will not be started.
  705. .TP
  706. .B tls
  707. If set to \fBtrue\fP, TLS (HTTPS) will be enforced. Non\-HTTPS requests will
  708. be redirected to HTTPS. When this is set to \fBfalse\fP, TLS connections are
  709. still possible but it is not mandatory.
  710. .TP
  711. .B debugging
  712. This enables profiling and additional debugging endpoints in the rest\-api\&.
  713. .UNINDENT
  714. .sp
  715. The following child elements may be present:
  716. .INDENT 0.0
  717. .TP
  718. .B address
  719. Set the listen address. One address element must be present. Allowed address formats are:
  720. .INDENT 7.0
  721. .TP
  722. .B IPv4 address and port (\fB127.0.0.1:8384\fP)
  723. The address and port is used as given.
  724. .TP
  725. .B IPv6 address and port (\fB[::1]:8384\fP)
  726. The address and port is used as given. The address must be enclosed in
  727. square brackets.
  728. .TP
  729. .B Wildcard and port (\fB0.0.0.0:12345\fP, \fB[::]:12345\fP, \fB:12345\fP)
  730. These are equivalent and will result in Syncthing listening on all
  731. interfaces via both IPv4 and IPv6.
  732. .TP
  733. .B UNIX socket location (\fB/var/run/st.sock\fP)
  734. If the address is an absolute path it is interpreted as the path to a UNIX socket.
  735. (Added in v0.14.52.)
  736. .UNINDENT
  737. .TP
  738. .B unixSocketPermissions
  739. In the case that a UNIX socket location is used for \fBaddress\fP, set this to an octal to override the default permissions of the socket.
  740. .TP
  741. .B user
  742. Set to require authentication.
  743. .TP
  744. .B password
  745. Contains the bcrypt hash of the real password.
  746. .TP
  747. .B apikey
  748. If set, this is the API key that enables usage of the REST interface.
  749. .TP
  750. .B insecureAdminAccess
  751. If true, this allows access to the web GUI from outside (i.e. not localhost)
  752. without authorization. A warning will displayed about this setting on startup.
  753. .TP
  754. .B theme
  755. The name of the theme to use.
  756. .TP
  757. .B authMode
  758. Authentication mode to use. If not present authentication mode (static)
  759. is controlled by presence of user/password fields for backward compatibility.
  760. .INDENT 7.0
  761. .TP
  762. .B static
  763. Authentication using user and password.
  764. .TP
  765. .B ldap
  766. LDAP authentication. Requires ldap top level config section to be present.
  767. .UNINDENT
  768. .UNINDENT
  769. .SH LDAP ELEMENT
  770. .INDENT 0.0
  771. .INDENT 3.5
  772. .sp
  773. .nf
  774. .ft C
  775. <ldap>
  776. <address>localhost:389</address>
  777. <bindDN>cn=%s,ou=users,dc=syncthing,dc=net</bindDN>
  778. <transport>nontls</transport>
  779. <insecureSkipVerify>false</insecureSkipVerify>
  780. </ldap>
  781. .ft P
  782. .fi
  783. .UNINDENT
  784. .UNINDENT
  785. .sp
  786. The \fBldap\fP element contains LDAP configuration options.
  787. .INDENT 0.0
  788. .TP
  789. .B address
  790. LDAP server address (server:port).
  791. .TP
  792. .B bindDN
  793. BindDN for user authentication.
  794. Special %s variable should be used to pass username to LDAP.
  795. .UNINDENT
  796. .sp
  797. transport
  798. .INDENT 0.0
  799. .INDENT 3.5
  800. .INDENT 0.0
  801. .TP
  802. .B nontls
  803. Non secure connection.
  804. .TP
  805. .B tls
  806. TLS secured connection.
  807. .TP
  808. .B starttls
  809. StartTLS connection mode.
  810. .UNINDENT
  811. .UNINDENT
  812. .UNINDENT
  813. .INDENT 0.0
  814. .TP
  815. .B insecureSkipVerify
  816. Skip verification (true or false).
  817. .UNINDENT
  818. .SH OPTIONS ELEMENT
  819. .INDENT 0.0
  820. .INDENT 3.5
  821. .sp
  822. .nf
  823. .ft C
  824. <options>
  825. <listenAddress>default</listenAddress>
  826. <globalAnnounceServer>default</globalAnnounceServer>
  827. <globalAnnounceEnabled>true</globalAnnounceEnabled>
  828. <localAnnounceEnabled>true</localAnnounceEnabled>
  829. <localAnnouncePort>21027</localAnnouncePort>
  830. <localAnnounceMCAddr>[ff12::8384]:21027</localAnnounceMCAddr>
  831. <maxSendKbps>0</maxSendKbps>
  832. <maxRecvKbps>0</maxRecvKbps>
  833. <reconnectionIntervalS>60</reconnectionIntervalS>
  834. <relaysEnabled>true</relaysEnabled>
  835. <relayReconnectIntervalM>10</relayReconnectIntervalM>
  836. <startBrowser>true</startBrowser>
  837. <natEnabled>true</natEnabled>
  838. <natLeaseMinutes>60</natLeaseMinutes>
  839. <natRenewalMinutes>30</natRenewalMinutes>
  840. <natTimeoutSeconds>10</natTimeoutSeconds>
  841. <urAccepted>0</urAccepted>
  842. <urSeen>0</urSeen>
  843. <urUniqueID></urUniqueID>
  844. <urURL>https://data.syncthing.net/newdata</urURL>
  845. <urPostInsecurely>false</urPostInsecurely>
  846. <urInitialDelayS>1800</urInitialDelayS>
  847. <restartOnWakeup>true</restartOnWakeup>
  848. <autoUpgradeIntervalH>12</autoUpgradeIntervalH>
  849. <upgradeToPreReleases>false</upgradeToPreReleases>
  850. <keepTemporariesH>24</keepTemporariesH>
  851. <cacheIgnoredFiles>false</cacheIgnoredFiles>
  852. <progressUpdateIntervalS>5</progressUpdateIntervalS>
  853. <limitBandwidthInLan>false</limitBandwidthInLan>
  854. <minHomeDiskFree unit="%">1</minHomeDiskFree>
  855. <releasesURL>https://upgrades.syncthing.net/meta.json</releasesURL>
  856. <overwriteRemoteDeviceNamesOnConnect>false</overwriteRemoteDeviceNamesOnConnect>
  857. <tempIndexMinBlocks>10</tempIndexMinBlocks>
  858. <trafficClass>0</trafficClass>
  859. <defaultFolderPath>~</defaultFolderPath>
  860. <setLowPriority>true</setLowPriority>
  861. <maxFolderConcurrency>0</maxFolderConcurrency>
  862. <crashReportingURL>https://crash.syncthing.net/newcrash</crashReportingURL>
  863. <crashReportingEnabled>true</crashReportingEnabled>
  864. <stunKeepaliveStartS>180</stunKeepaliveStartS>
  865. <stunKeepaliveMinS>20</stunKeepaliveMinS>
  866. <stunServer>default</stunServer>
  867. <databaseTuning>auto</databaseTuning>
  868. <maxConcurrentIncomingRequestKiB>0</maxConcurrentIncomingRequestKiB>
  869. </options>
  870. .ft P
  871. .fi
  872. .UNINDENT
  873. .UNINDENT
  874. .sp
  875. The \fBoptions\fP element contains all other global configuration options.
  876. .INDENT 0.0
  877. .TP
  878. .B listenAddress
  879. The listen address for incoming sync connections. See
  880. \fI\%Listen Addresses\fP for allowed syntax.
  881. .TP
  882. .B globalAnnounceServer
  883. A URI to a global announce (discovery) server, or the word \fBdefault\fP to
  884. include the default servers. Any number of globalAnnounceServer elements
  885. may be present. The syntax for non\-default entries is that of a HTTP or
  886. HTTPS URL. A number of options may be added as query options to the URL:
  887. \fBinsecure\fP to prevent certificate validation (required for HTTP URLs)
  888. and \fBid=<device ID>\fP to perform certificate pinning. The device ID to
  889. use is printed by the discovery server on startup.
  890. .TP
  891. .B globalAnnounceEnabled
  892. Whether to announce this device to the global announce (discovery) server,
  893. and also use it to look up other devices.
  894. .TP
  895. .B localAnnounceEnabled
  896. Whether to send announcements to the local LAN, also use such
  897. announcements to find other devices.
  898. .TP
  899. .B localAnnouncePort
  900. The port on which to listen and send IPv4 broadcast announcements to.
  901. .TP
  902. .B localAnnounceMCAddr
  903. The group address and port to join and send IPv6 multicast announcements on.
  904. .TP
  905. .B maxSendKbps
  906. Outgoing data rate limit, in kibibytes per second.
  907. .TP
  908. .B maxRecvKbps
  909. Incoming data rate limits, in kibibytes per second.
  910. .TP
  911. .B reconnectionIntervalS
  912. The number of seconds to wait between each attempt to connect to currently
  913. unconnected devices.
  914. .TP
  915. .B relaysEnabled
  916. When true, relays will be connected to and potentially used for device to device connections.
  917. .TP
  918. .B relayReconnectIntervalM
  919. Sets the interval, in minutes, between relay reconnect attempts.
  920. .TP
  921. .B startBrowser
  922. Whether to attempt to start a browser to show the GUI when Syncthing starts.
  923. .TP
  924. .B natEnabled
  925. Whether to attempt to perform a UPnP and NAT\-PMP port mapping for
  926. incoming sync connections.
  927. .TP
  928. .B natLeaseMinutes
  929. Request a lease for this many minutes; zero to request a permanent lease.
  930. .TP
  931. .B natRenewalMinutes
  932. Attempt to renew the lease after this many minutes.
  933. .TP
  934. .B natTimeoutSeconds
  935. When scanning for UPnP devices, wait this long for responses.
  936. .TP
  937. .B urAccepted
  938. Whether the user has accepted to submit anonymous usage data. The default,
  939. \fB0\fP, mean the user has not made a choice, and Syncthing will ask at some
  940. point in the future. \fB\-1\fP means no, a number above zero means that that
  941. version of usage reporting has been accepted.
  942. .TP
  943. .B urSeen
  944. The highest usage reporting version that has already been shown in the web GUI.
  945. .TP
  946. .B urUniqueID
  947. The unique ID sent together with the usage report. Generated when usage
  948. reporting is enabled.
  949. .TP
  950. .B urURL
  951. The URL to post usage report data to, when enabled.
  952. .TP
  953. .B urPostInsecurely
  954. When true, the UR URL can be http instead of https, or have a self\-signed
  955. certificate. The default is \fBfalse\fP\&.
  956. .TP
  957. .B urInitialDelayS
  958. The time to wait from startup to the first usage report being sent. Allows
  959. the system to stabilize before reporting statistics.
  960. .TP
  961. .B restartOnWakeup
  962. Whether to perform a restart of Syncthing when it is detected that we are
  963. waking from sleep mode (i.e. a folded up laptop).
  964. .TP
  965. .B autoUpgradeIntervalH
  966. Check for a newer version after this many hours. Set to zero to disable
  967. automatic upgrades.
  968. .TP
  969. .B upgradeToPreReleases
  970. If true, automatic upgrades include release candidates (see
  971. releases).
  972. .TP
  973. .B keepTemporariesH
  974. Keep temporary failed transfers for this many hours. While the temporaries
  975. are kept, the data they contain need not be transferred again.
  976. .TP
  977. .B cacheIgnoredFiles
  978. Whether to cache the results of ignore pattern evaluation. Performance
  979. at the price of memory. Defaults to \fBfalse\fP as the cost for evaluating
  980. ignores is usually not significant.
  981. .TP
  982. .B progressUpdateIntervalS
  983. How often in seconds the progress of ongoing downloads is made available to
  984. the GUI.
  985. .TP
  986. .B limitBandwidthInLan
  987. Whether to apply bandwidth limits to devices in the same broadcast domain
  988. as the local device.
  989. .TP
  990. .B minHomeDiskFree
  991. The minimum required free space that should be available on the
  992. partition holding the configuration and index. Accepted units are \fB%\fP, \fBkB\fP,
  993. \fBMB\fP, \fBGB\fP and \fBTB\fP\&.
  994. .TP
  995. .B releasesURL
  996. The URL from which release information is loaded, for automatic upgrades.
  997. .TP
  998. .B alwaysLocalNet
  999. Network that should be considered as local given in CIDR notation.
  1000. .TP
  1001. .B overwriteRemoteDeviceNamesOnConnect
  1002. If set, device names will always be overwritten with the name given by
  1003. remote on each connection. By default, the name that the remote device
  1004. announces will only be adopted when a name has not already been set.
  1005. .TP
  1006. .B tempIndexMinBlocks
  1007. When exchanging index information for incomplete transfers, only take
  1008. into account files that have at least this many blocks.
  1009. .TP
  1010. .B unackedNotificationID
  1011. ID of a notification to be displayed in the web GUI. Will be removed once
  1012. the user acknowledged it (e.g. an transition notice on an upgrade).
  1013. .TP
  1014. .B trafficClass
  1015. Specify a type of service (TOS)/traffic class of outgoing packets.
  1016. .TP
  1017. .B stunServer
  1018. Server to be used for STUN, given as ip:port. The keyword \fBdefault\fP gets
  1019. expanded to
  1020. \fBstun.callwithus.com:3478\fP, \fBstun.counterpath.com:3478\fP,
  1021. \fBstun.counterpath.net:3478\fP, \fBstun.ekiga.net:3478\fP,
  1022. \fBstun.ideasip.com:3478\fP, \fBstun.internetcalls.com:3478\fP,
  1023. \fBstun.schlund.de:3478\fP, \fBstun.sipgate.net:10000\fP,
  1024. \fBstun.sipgate.net:3478\fP, \fBstun.voip.aebc.com:3478\fP,
  1025. \fBstun.voiparound.com:3478\fP, \fBstun.voipbuster.com:3478\fP,
  1026. \fBstun.voipstunt.com:3478\fP and \fBstun.xten.com:3478\fP (this is the default).
  1027. .TP
  1028. .B stunKeepaliveSeconds
  1029. Interval in seconds between contacting a STUN server to
  1030. maintain NAT mapping. Default is \fB24\fP and you can set it to \fB0\fP to
  1031. disable contacting STUN servers.
  1032. .TP
  1033. .B defaultFolderPath
  1034. The UI will propose to create new folders at this path. This can be disabled by
  1035. setting this to an empty string.
  1036. .UNINDENT
  1037. .INDENT 0.0
  1038. .TP
  1039. .B setLowPriority
  1040. Syncthing will attempt to lower its process priority at startup.
  1041. Specifically: on Linux, set itself to a separate process group, set the
  1042. niceness level of that process group to nine and the I/O priority to
  1043. best effort level five; on other Unixes, set the process niceness level
  1044. to nine; on Windows, set the process priority class to below normal. To
  1045. disable this behavior, for example to control process priority yourself
  1046. as part of launching Syncthing, set this option to \fBfalse\fP\&.
  1047. .UNINDENT
  1048. .SS Listen Addresses
  1049. .sp
  1050. The following address types are accepted in sync protocol listen addresses. If you want Syncthing to listen on multiple addresses, you can either: add multiple \fB<listenAddress>\fP tags in the configuration file or enter several addresses separated by commas in the GUI.
  1051. .INDENT 0.0
  1052. .TP
  1053. .B Default listen addresses (\fBdefault\fP)
  1054. This is equivalent to \fBtcp://0.0.0.0:22000\fP, \fBquic://0.0.0.0:22000\fP
  1055. and \fBdynamic+https://relays.syncthing.net/endpoint\fP\&.
  1056. .TP
  1057. .B TCP wildcard and port (\fBtcp://0.0.0.0:22000\fP, \fBtcp://:22000\fP)
  1058. These are equivalent and will result in Syncthing listening on all
  1059. interfaces, IPv4 and IPv6, on the specified port.
  1060. .TP
  1061. .B TCP IPv4 wildcard and port (\fBtcp4://0.0.0.0:22000\fP, \fBtcp4://:22000\fP)
  1062. These are equivalent and will result in Syncthing listening on all
  1063. interfaces via IPv4 only.
  1064. .TP
  1065. .B TCP IPv4 address and port (\fBtcp4://192.0.2.1:22000\fP)
  1066. This results in Syncthing listening on the specified address and port, IPv4
  1067. only.
  1068. .TP
  1069. .B TCP IPv6 wildcard and port (\fBtcp6://[::]:22000\fP, \fBtcp6://:22000\fP)
  1070. These are equivalent and will result in Syncthing listening on all
  1071. interfaces via IPv6 only.
  1072. .TP
  1073. .B TCP IPv6 address and port (\fBtcp6://[2001:db8::42]:22000\fP)
  1074. This results in Syncthing listening on the specified address and port, IPv6
  1075. only.
  1076. .TP
  1077. .B QUIC address and port (e.g. \fBquic://0.0.0.0:22000\fP)
  1078. Syntax is the same as for TCP, also \fBquic4\fP and \fBquic6\fP can be used.
  1079. .TP
  1080. .B Static relay address (\fBrelay://192.0.2.42:22067?id=abcd123...\fP)
  1081. Syncthing will connect to and listen for incoming connections via the
  1082. specified relay address.
  1083. .INDENT 7.0
  1084. .INDENT 3.5
  1085. .SS Todo
  1086. .sp
  1087. Document available URL parameters.
  1088. .UNINDENT
  1089. .UNINDENT
  1090. .TP
  1091. .B Dynamic relay pool (\fBdynamic+https://192.0.2.42/relays\fP)
  1092. Syncthing will fetch the specified HTTPS URL, parse it for a JSON payload
  1093. describing relays, select a relay from the available ones and listen via
  1094. that as if specified as a static relay above.
  1095. .INDENT 7.0
  1096. .INDENT 3.5
  1097. .SS Todo
  1098. .sp
  1099. Document available URL parameters.
  1100. .UNINDENT
  1101. .UNINDENT
  1102. .UNINDENT
  1103. .SH SYNCING CONFIGURATION FILES
  1104. .sp
  1105. Syncing configuration files between devices (such that multiple devices are
  1106. using the same configuration files) can cause issues. This is easy to do
  1107. accidentally if you sync your home folder between devices. A common symptom
  1108. of syncing configuration files is two devices ending up with the same Device ID.
  1109. .sp
  1110. If you want to use Syncthing to backup your configuration files, it is recommended
  1111. that the files you are backing up are in a folder\-sendonly to prevent other
  1112. devices from overwriting the per device configuration. The folder on the remote
  1113. device(s) should not be used as configuration for the remote devices.
  1114. .sp
  1115. If you’d like to sync your home folder in non\-send only mode, you may add the
  1116. folder that stores the configuration files to the ignore list\&.
  1117. If you’d also like to backup your configuration files, add another folder in
  1118. send only mode for just the configuration folder.
  1119. .SH AUTHOR
  1120. The Syncthing Authors
  1121. .SH COPYRIGHT
  1122. 2014-2019, The Syncthing Authors
  1123. .\" Generated by docutils manpage writer.
  1124. .