syncthing-config.5 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .TH "SYNCTHING-CONFIG" "5" "Mar 11, 2021" "v1" "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. %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. .INDENT 7.0
  606. .TP
  607. .B Contains an address or host name to use when attempting to connect to this device.
  608. Entries other than \fBdynamic\fP need a protocol specific prefix. For the TCP protocol
  609. .TP
  610. .B the prefixes \fBtcp://\fP (dual\-stack), \fBtcp4://\fP (IPv4 only) or \fBtcp6://\fP (IPv6 only) can be used.
  611. The prefixes for the QUIC protocol are analogous: \fBquic://\fP, \fBquic4://\fP and \fBquic6://\fP
  612. .UNINDENT
  613. .sp
  614. Note that IP addresses need not use IPv4 or IPv6 prefixes; these are optional. Accepted formats are:
  615. .INDENT 7.0
  616. .TP
  617. .B IPv4 address (\fBtcp://192.0.2.42\fP)
  618. The default port (22000) is used.
  619. .TP
  620. .B IPv4 address and port (\fBtcp://192.0.2.42:12345\fP)
  621. The address and port is used as given.
  622. .TP
  623. .B IPv6 address (\fBtcp://[2001:db8::23:42]\fP)
  624. The default port (22000) is used. The address must be enclosed in
  625. square brackets.
  626. .TP
  627. .B IPv6 address and port (\fBtcp://[2001:db8::23:42]:12345\fP)
  628. The address and port is used as given. The address must be enclosed in
  629. square brackets.
  630. .TP
  631. .B Host name (\fBtcp6://fileserver\fP)
  632. The host name will be used on the default port (22000) and connections
  633. will be attempted only via IPv6.
  634. .TP
  635. .B Host name and port (\fBtcp://fileserver:12345\fP)
  636. The host name will be used on the given port and connections will be
  637. attempted via both IPv4 and IPv6, depending on name resolution.
  638. .TP
  639. .B \fBdynamic\fP
  640. The word \fBdynamic\fP (without any prefix) means to use local and
  641. global discovery to find the device.
  642. .UNINDENT
  643. .sp
  644. You can set multiple addresses \fIand\fP combine it with the \fBdynamic\fP keyword
  645. for example:
  646. .INDENT 7.0
  647. .INDENT 3.5
  648. .sp
  649. .nf
  650. .ft C
  651. <device id="...">
  652. <address>tcp://192.0.2.1:22001</address>
  653. <address>quic://192.0.1.254:22000</address>
  654. <address>dynamic</address>
  655. </device>
  656. .ft P
  657. .fi
  658. .UNINDENT
  659. .UNINDENT
  660. .TP
  661. .B paused
  662. True if synchronization with this devices is (temporarily) suspended.
  663. .TP
  664. .B allowedNetwork
  665. If given, this restricts connections to this device to only this network
  666. (see allowed\-networks).
  667. .TP
  668. .B maxSendKbps
  669. Maximum send rate to use for this device. Unit is kibibytes/second, despite
  670. the config name looking like kilobits/second.
  671. .TP
  672. .B maxRecvKbps
  673. Maximum receive rate to use for this device. Unit is kibibytes/second,
  674. despite the config name looking like kilobits/second.
  675. .TP
  676. .B maxRequestKiB
  677. Maximum amount of data to have outstanding in requests towards this device.
  678. Unit is kibibytes.
  679. .TP
  680. .B remoteGUIPort
  681. If set to a positive integer, the GUI will display an HTTP link to the IP
  682. address which is currently used for synchronization. Only the TCP port is
  683. exchanged for the value specified here. Note that any port forwarding or
  684. firewall settings need to be done manually and the link will probably not
  685. work for link\-local IPv6 addresses because of modern browser limitations.
  686. .UNINDENT
  687. .SH GUI ELEMENT
  688. .INDENT 0.0
  689. .INDENT 3.5
  690. .sp
  691. .nf
  692. .ft C
  693. <gui enabled="true" tls="false" debugging="false">
  694. <address>127.0.0.1:8384</address>
  695. <apikey>l7jSbCqPD95JYZ0g8vi4ZLAMg3ulnN1b</apikey>
  696. <theme>default</theme>
  697. </gui>
  698. .ft P
  699. .fi
  700. .UNINDENT
  701. .UNINDENT
  702. .sp
  703. There must be exactly one \fBgui\fP element. The GUI configuration is also used
  704. by the rest\-api and the event\-api\&. The following attributes may
  705. be set on the \fBgui\fP element:
  706. .INDENT 0.0
  707. .TP
  708. .B enabled
  709. If not \fBtrue\fP, the GUI and API will not be started.
  710. .TP
  711. .B tls
  712. If set to \fBtrue\fP, TLS (HTTPS) will be enforced. Non\-HTTPS requests will
  713. be redirected to HTTPS. When this is set to \fBfalse\fP, TLS connections are
  714. still possible but it is not mandatory.
  715. .TP
  716. .B debugging
  717. This enables profiling and additional debugging endpoints in the rest\-api\&.
  718. .UNINDENT
  719. .sp
  720. The following child elements may be present:
  721. .INDENT 0.0
  722. .TP
  723. .B address
  724. Set the listen address. One address element must be present. Allowed address formats are:
  725. .INDENT 7.0
  726. .TP
  727. .B IPv4 address and port (\fB127.0.0.1:8384\fP)
  728. The address and port is used as given.
  729. .TP
  730. .B IPv6 address and port (\fB[::1]:8384\fP)
  731. The address and port is used as given. The address must be enclosed in
  732. square brackets.
  733. .TP
  734. .B Wildcard and port (\fB0.0.0.0:12345\fP, \fB[::]:12345\fP, \fB:12345\fP)
  735. These are equivalent and will result in Syncthing listening on all
  736. interfaces via both IPv4 and IPv6.
  737. .TP
  738. .B UNIX socket location (\fB/var/run/st.sock\fP)
  739. If the address is an absolute path it is interpreted as the path to a UNIX socket.
  740. (Added in v0.14.52.)
  741. .UNINDENT
  742. .TP
  743. .B unixSocketPermissions
  744. 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.
  745. .TP
  746. .B user
  747. Set to require authentication.
  748. .TP
  749. .B password
  750. Contains the bcrypt hash of the real password.
  751. .TP
  752. .B apikey
  753. If set, this is the API key that enables usage of the REST interface.
  754. .TP
  755. .B insecureAdminAccess
  756. If true, this allows access to the web GUI from outside (i.e. not localhost)
  757. without authorization. A warning will displayed about this setting on startup.
  758. .TP
  759. .B theme
  760. The name of the theme to use.
  761. .TP
  762. .B authMode
  763. Authentication mode to use. If not present authentication mode (static)
  764. is controlled by presence of user/password fields for backward compatibility.
  765. .INDENT 7.0
  766. .TP
  767. .B static
  768. Authentication using user and password.
  769. .TP
  770. .B ldap
  771. LDAP authentication. Requires ldap top level config section to be present.
  772. .UNINDENT
  773. .UNINDENT
  774. .SH LDAP ELEMENT
  775. .INDENT 0.0
  776. .INDENT 3.5
  777. .sp
  778. .nf
  779. .ft C
  780. <ldap>
  781. <address>localhost:389</address>
  782. <bindDN>cn=%s,ou=users,dc=syncthing,dc=net</bindDN>
  783. <transport>nontls</transport>
  784. <insecureSkipVerify>false</insecureSkipVerify>
  785. </ldap>
  786. .ft P
  787. .fi
  788. .UNINDENT
  789. .UNINDENT
  790. .sp
  791. The \fBldap\fP element contains LDAP configuration options.
  792. .INDENT 0.0
  793. .TP
  794. .B address
  795. LDAP server address (server:port).
  796. .TP
  797. .B bindDN
  798. BindDN for user authentication.
  799. Special %s variable should be used to pass username to LDAP.
  800. .UNINDENT
  801. .sp
  802. transport
  803. .INDENT 0.0
  804. .INDENT 3.5
  805. .INDENT 0.0
  806. .TP
  807. .B nontls
  808. Non secure connection.
  809. .TP
  810. .B tls
  811. TLS secured connection.
  812. .TP
  813. .B starttls
  814. StartTLS connection mode.
  815. .UNINDENT
  816. .UNINDENT
  817. .UNINDENT
  818. .INDENT 0.0
  819. .TP
  820. .B insecureSkipVerify
  821. Skip verification (true or false).
  822. .UNINDENT
  823. .SH OPTIONS ELEMENT
  824. .INDENT 0.0
  825. .INDENT 3.5
  826. .sp
  827. .nf
  828. .ft C
  829. <options>
  830. <listenAddress>default</listenAddress>
  831. <globalAnnounceServer>default</globalAnnounceServer>
  832. <globalAnnounceEnabled>true</globalAnnounceEnabled>
  833. <localAnnounceEnabled>true</localAnnounceEnabled>
  834. <localAnnouncePort>21027</localAnnouncePort>
  835. <localAnnounceMCAddr>[ff12::8384]:21027</localAnnounceMCAddr>
  836. <maxSendKbps>0</maxSendKbps>
  837. <maxRecvKbps>0</maxRecvKbps>
  838. <reconnectionIntervalS>60</reconnectionIntervalS>
  839. <relaysEnabled>true</relaysEnabled>
  840. <relayReconnectIntervalM>10</relayReconnectIntervalM>
  841. <startBrowser>true</startBrowser>
  842. <natEnabled>true</natEnabled>
  843. <natLeaseMinutes>60</natLeaseMinutes>
  844. <natRenewalMinutes>30</natRenewalMinutes>
  845. <natTimeoutSeconds>10</natTimeoutSeconds>
  846. <urAccepted>0</urAccepted>
  847. <urSeen>0</urSeen>
  848. <urUniqueID></urUniqueID>
  849. <urURL>https://data.syncthing.net/newdata</urURL>
  850. <urPostInsecurely>false</urPostInsecurely>
  851. <urInitialDelayS>1800</urInitialDelayS>
  852. <restartOnWakeup>true</restartOnWakeup>
  853. <autoUpgradeIntervalH>12</autoUpgradeIntervalH>
  854. <upgradeToPreReleases>false</upgradeToPreReleases>
  855. <keepTemporariesH>24</keepTemporariesH>
  856. <cacheIgnoredFiles>false</cacheIgnoredFiles>
  857. <progressUpdateIntervalS>5</progressUpdateIntervalS>
  858. <limitBandwidthInLan>false</limitBandwidthInLan>
  859. <minHomeDiskFree unit="%">1</minHomeDiskFree>
  860. <releasesURL>https://upgrades.syncthing.net/meta.json</releasesURL>
  861. <overwriteRemoteDeviceNamesOnConnect>false</overwriteRemoteDeviceNamesOnConnect>
  862. <tempIndexMinBlocks>10</tempIndexMinBlocks>
  863. <trafficClass>0</trafficClass>
  864. <defaultFolderPath>~</defaultFolderPath>
  865. <setLowPriority>true</setLowPriority>
  866. <maxFolderConcurrency>0</maxFolderConcurrency>
  867. <crashReportingURL>https://crash.syncthing.net/newcrash</crashReportingURL>
  868. <crashReportingEnabled>true</crashReportingEnabled>
  869. <stunKeepaliveStartS>180</stunKeepaliveStartS>
  870. <stunKeepaliveMinS>20</stunKeepaliveMinS>
  871. <stunServer>default</stunServer>
  872. <databaseTuning>auto</databaseTuning>
  873. <maxConcurrentIncomingRequestKiB>0</maxConcurrentIncomingRequestKiB>
  874. </options>
  875. .ft P
  876. .fi
  877. .UNINDENT
  878. .UNINDENT
  879. .sp
  880. The \fBoptions\fP element contains all other global configuration options.
  881. .INDENT 0.0
  882. .TP
  883. .B listenAddress
  884. The listen address for incoming sync connections. See
  885. \fI\%Listen Addresses\fP for allowed syntax.
  886. .TP
  887. .B globalAnnounceServer
  888. A URI to a global announce (discovery) server, or the word \fBdefault\fP to
  889. include the default servers. Any number of globalAnnounceServer elements
  890. may be present. The syntax for non\-default entries is that of a HTTP or
  891. HTTPS URL. A number of options may be added as query options to the URL:
  892. \fBinsecure\fP to prevent certificate validation (required for HTTP URLs)
  893. and \fBid=<device ID>\fP to perform certificate pinning. The device ID to
  894. use is printed by the discovery server on startup.
  895. .TP
  896. .B globalAnnounceEnabled
  897. Whether to announce this device to the global announce (discovery) server,
  898. and also use it to look up other devices.
  899. .TP
  900. .B localAnnounceEnabled
  901. Whether to send announcements to the local LAN, also use such
  902. announcements to find other devices.
  903. .TP
  904. .B localAnnouncePort
  905. The port on which to listen and send IPv4 broadcast announcements to.
  906. .TP
  907. .B localAnnounceMCAddr
  908. The group address and port to join and send IPv6 multicast announcements on.
  909. .TP
  910. .B maxSendKbps
  911. Outgoing data rate limit, in kibibytes per second.
  912. .TP
  913. .B maxRecvKbps
  914. Incoming data rate limits, in kibibytes per second.
  915. .TP
  916. .B reconnectionIntervalS
  917. The number of seconds to wait between each attempt to connect to currently
  918. unconnected devices.
  919. .TP
  920. .B relaysEnabled
  921. When true, relays will be connected to and potentially used for device to device connections.
  922. .TP
  923. .B relayReconnectIntervalM
  924. Sets the interval, in minutes, between relay reconnect attempts.
  925. .TP
  926. .B startBrowser
  927. Whether to attempt to start a browser to show the GUI when Syncthing starts.
  928. .TP
  929. .B natEnabled
  930. Whether to attempt to perform a UPnP and NAT\-PMP port mapping for
  931. incoming sync connections.
  932. .TP
  933. .B natLeaseMinutes
  934. Request a lease for this many minutes; zero to request a permanent lease.
  935. .TP
  936. .B natRenewalMinutes
  937. Attempt to renew the lease after this many minutes.
  938. .TP
  939. .B natTimeoutSeconds
  940. When scanning for UPnP devices, wait this long for responses.
  941. .TP
  942. .B urAccepted
  943. Whether the user has accepted to submit anonymous usage data. The default,
  944. \fB0\fP, mean the user has not made a choice, and Syncthing will ask at some
  945. point in the future. \fB\-1\fP means no, a number above zero means that that
  946. version of usage reporting has been accepted.
  947. .TP
  948. .B urSeen
  949. The highest usage reporting version that has already been shown in the web GUI.
  950. .TP
  951. .B urUniqueID
  952. The unique ID sent together with the usage report. Generated when usage
  953. reporting is enabled.
  954. .TP
  955. .B urURL
  956. The URL to post usage report data to, when enabled.
  957. .TP
  958. .B urPostInsecurely
  959. When true, the UR URL can be http instead of https, or have a self\-signed
  960. certificate. The default is \fBfalse\fP\&.
  961. .TP
  962. .B urInitialDelayS
  963. The time to wait from startup to the first usage report being sent. Allows
  964. the system to stabilize before reporting statistics.
  965. .TP
  966. .B restartOnWakeup
  967. Whether to perform a restart of Syncthing when it is detected that we are
  968. waking from sleep mode (i.e. a folded up laptop).
  969. .TP
  970. .B autoUpgradeIntervalH
  971. Check for a newer version after this many hours. Set to zero to disable
  972. automatic upgrades.
  973. .TP
  974. .B upgradeToPreReleases
  975. If true, automatic upgrades include release candidates (see
  976. releases).
  977. .TP
  978. .B keepTemporariesH
  979. Keep temporary failed transfers for this many hours. While the temporaries
  980. are kept, the data they contain need not be transferred again.
  981. .TP
  982. .B cacheIgnoredFiles
  983. Whether to cache the results of ignore pattern evaluation. Performance
  984. at the price of memory. Defaults to \fBfalse\fP as the cost for evaluating
  985. ignores is usually not significant.
  986. .TP
  987. .B progressUpdateIntervalS
  988. How often in seconds the progress of ongoing downloads is made available to
  989. the GUI.
  990. .TP
  991. .B limitBandwidthInLan
  992. Whether to apply bandwidth limits to devices in the same broadcast domain
  993. as the local device.
  994. .TP
  995. .B minHomeDiskFree
  996. The minimum required free space that should be available on the
  997. partition holding the configuration and index. Accepted units are \fB%\fP, \fBkB\fP,
  998. \fBMB\fP, \fBGB\fP and \fBTB\fP\&.
  999. .TP
  1000. .B releasesURL
  1001. The URL from which release information is loaded, for automatic upgrades.
  1002. .TP
  1003. .B alwaysLocalNet
  1004. Network that should be considered as local given in CIDR notation.
  1005. .TP
  1006. .B overwriteRemoteDeviceNamesOnConnect
  1007. If set, device names will always be overwritten with the name given by
  1008. remote on each connection. By default, the name that the remote device
  1009. announces will only be adopted when a name has not already been set.
  1010. .TP
  1011. .B tempIndexMinBlocks
  1012. When exchanging index information for incomplete transfers, only take
  1013. into account files that have at least this many blocks.
  1014. .TP
  1015. .B unackedNotificationID
  1016. ID of a notification to be displayed in the web GUI. Will be removed once
  1017. the user acknowledged it (e.g. an transition notice on an upgrade).
  1018. .TP
  1019. .B trafficClass
  1020. Specify a type of service (TOS)/traffic class of outgoing packets.
  1021. .TP
  1022. .B stunServer
  1023. Server to be used for STUN, given as ip:port. The keyword \fBdefault\fP gets
  1024. expanded to
  1025. \fBstun.callwithus.com:3478\fP, \fBstun.counterpath.com:3478\fP,
  1026. \fBstun.counterpath.net:3478\fP, \fBstun.ekiga.net:3478\fP,
  1027. \fBstun.ideasip.com:3478\fP, \fBstun.internetcalls.com:3478\fP,
  1028. \fBstun.schlund.de:3478\fP, \fBstun.sipgate.net:10000\fP,
  1029. \fBstun.sipgate.net:3478\fP, \fBstun.voip.aebc.com:3478\fP,
  1030. \fBstun.voiparound.com:3478\fP, \fBstun.voipbuster.com:3478\fP,
  1031. \fBstun.voipstunt.com:3478\fP and \fBstun.xten.com:3478\fP (this is the default).
  1032. .TP
  1033. .B stunKeepaliveSeconds
  1034. Interval in seconds between contacting a STUN server to
  1035. maintain NAT mapping. Default is \fB24\fP and you can set it to \fB0\fP to
  1036. disable contacting STUN servers.
  1037. .TP
  1038. .B defaultFolderPath
  1039. The UI will propose to create new folders at this path. This can be disabled by
  1040. setting this to an empty string.
  1041. .UNINDENT
  1042. .INDENT 0.0
  1043. .TP
  1044. .B setLowPriority
  1045. Syncthing will attempt to lower its process priority at startup.
  1046. Specifically: on Linux, set itself to a separate process group, set the
  1047. niceness level of that process group to nine and the I/O priority to
  1048. best effort level five; on other Unixes, set the process niceness level
  1049. to nine; on Windows, set the process priority class to below normal. To
  1050. disable this behavior, for example to control process priority yourself
  1051. as part of launching Syncthing, set this option to \fBfalse\fP\&.
  1052. .UNINDENT
  1053. .SS Listen Addresses
  1054. .sp
  1055. 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.
  1056. .INDENT 0.0
  1057. .TP
  1058. .B Default listen addresses (\fBdefault\fP)
  1059. This is equivalent to \fBtcp://0.0.0.0:22000\fP, \fBquic://0.0.0.0:22000\fP
  1060. and \fBdynamic+https://relays.syncthing.net/endpoint\fP\&.
  1061. .TP
  1062. .B TCP wildcard and port (\fBtcp://0.0.0.0:22000\fP, \fBtcp://:22000\fP)
  1063. These are equivalent and will result in Syncthing listening on all
  1064. interfaces, IPv4 and IPv6, on the specified port.
  1065. .TP
  1066. .B TCP IPv4 wildcard and port (\fBtcp4://0.0.0.0:22000\fP, \fBtcp4://:22000\fP)
  1067. These are equivalent and will result in Syncthing listening on all
  1068. interfaces via IPv4 only.
  1069. .TP
  1070. .B TCP IPv4 address and port (\fBtcp4://192.0.2.1:22000\fP)
  1071. This results in Syncthing listening on the specified address and port, IPv4
  1072. only.
  1073. .TP
  1074. .B TCP IPv6 wildcard and port (\fBtcp6://[::]:22000\fP, \fBtcp6://:22000\fP)
  1075. These are equivalent and will result in Syncthing listening on all
  1076. interfaces via IPv6 only.
  1077. .TP
  1078. .B TCP IPv6 address and port (\fBtcp6://[2001:db8::42]:22000\fP)
  1079. This results in Syncthing listening on the specified address and port, IPv6
  1080. only.
  1081. .TP
  1082. .B QUIC address and port (e.g. \fBquic://0.0.0.0:22000\fP)
  1083. Syntax is the same as for TCP, also \fBquic4\fP and \fBquic6\fP can be used.
  1084. .TP
  1085. .B Static relay address (\fBrelay://192.0.2.42:22067?id=abcd123...\fP)
  1086. Syncthing will connect to and listen for incoming connections via the
  1087. specified relay address.
  1088. .INDENT 7.0
  1089. .INDENT 3.5
  1090. .SS Todo
  1091. .sp
  1092. Document available URL parameters.
  1093. .UNINDENT
  1094. .UNINDENT
  1095. .TP
  1096. .B Dynamic relay pool (\fBdynamic+https://192.0.2.42/relays\fP)
  1097. Syncthing will fetch the specified HTTPS URL, parse it for a JSON payload
  1098. describing relays, select a relay from the available ones and listen via
  1099. that as if specified as a static relay above.
  1100. .INDENT 7.0
  1101. .INDENT 3.5
  1102. .SS Todo
  1103. .sp
  1104. Document available URL parameters.
  1105. .UNINDENT
  1106. .UNINDENT
  1107. .UNINDENT
  1108. .SH SYNCING CONFIGURATION FILES
  1109. .sp
  1110. Syncing configuration files between devices (such that multiple devices are
  1111. using the same configuration files) can cause issues. This is easy to do
  1112. accidentally if you sync your home folder between devices. A common symptom
  1113. of syncing configuration files is two devices ending up with the same Device ID.
  1114. .sp
  1115. If you want to use Syncthing to backup your configuration files, it is recommended
  1116. that the files you are backing up are in a folder\-sendonly to prevent other
  1117. devices from overwriting the per device configuration. The folder on the remote
  1118. device(s) should not be used as configuration for the remote devices.
  1119. .sp
  1120. If you’d like to sync your home folder in non\-send only mode, you may add the
  1121. folder that stores the configuration files to the ignore list\&.
  1122. If you’d also like to backup your configuration files, add another folder in
  1123. send only mode for just the configuration folder.
  1124. .SH AUTHOR
  1125. The Syncthing Authors
  1126. .SH COPYRIGHT
  1127. 2014-2019, The Syncthing Authors
  1128. .\" Generated by docutils manpage writer.
  1129. .