syncthing-config.5 56 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687
  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" "Sep 30, 2023" "v1.24.0" "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=\(dq37\(dq>
  118. <folder id=\(dqdefault\(dq label=\(dqDefault Folder\(dq path=\(dq/Users/jb/Sync/\(dq type=\(dqsendreceive\(dq rescanIntervalS=\(dq3600\(dq fsWatcherEnabled=\(dqtrue\(dq fsWatcherDelayS=\(dq10\(dq ignorePerms=\(dqfalse\(dq autoNormalize=\(dqtrue\(dq>
  119. <filesystemType>basic</filesystemType>
  120. <device id=\(dqS7UKX27\-GI7ZTXS\-GC6RKUA\-7AJGZ44\-C6NAYEB\-HSKTJQK\-KJHU2NO\-CWV7EQW\(dq introducedBy=\(dq\(dq>
  121. <encryptionPassword></encryptionPassword>
  122. </device>
  123. <minDiskFree unit=\(dq%\(dq>1</minDiskFree>
  124. <versioning>
  125. <cleanupIntervalS>3600</cleanupIntervalS>
  126. <fsPath></fsPath>
  127. <fsType>basic</fsType>
  128. </versioning>
  129. <copiers>0</copiers>
  130. <pullerMaxPendingKiB>0</pullerMaxPendingKiB>
  131. <hashers>0</hashers>
  132. <order>random</order>
  133. <ignoreDelete>false</ignoreDelete>
  134. <scanProgressIntervalS>0</scanProgressIntervalS>
  135. <pullerPauseS>0</pullerPauseS>
  136. <maxConflicts>\-1</maxConflicts>
  137. <disableSparseFiles>false</disableSparseFiles>
  138. <disableTempIndexes>false</disableTempIndexes>
  139. <paused>false</paused>
  140. <weakHashThresholdPct>25</weakHashThresholdPct>
  141. <markerName>.stfolder</markerName>
  142. <copyOwnershipFromParent>false</copyOwnershipFromParent>
  143. <modTimeWindowS>0</modTimeWindowS>
  144. <maxConcurrentWrites>2</maxConcurrentWrites>
  145. <disableFsync>false</disableFsync>
  146. <blockPullOrder>standard</blockPullOrder>
  147. <copyRangeMethod>standard</copyRangeMethod>
  148. <caseSensitiveFS>false</caseSensitiveFS>
  149. <junctionsAsDirs>false</junctionsAsDirs>
  150. <syncOwnership>false</syncOwnership>
  151. <sendOwnership>false</sendOwnership>
  152. <syncXattrs>false</syncXattrs>
  153. <sendXattrs>false</sendXattrs>
  154. </folder>
  155. <device id=\(dqS7UKX27\-GI7ZTXS\-GC6RKUA\-7AJGZ44\-C6NAYEB\-HSKTJQK\-KJHU2NO\-CWV7EQW\(dq name=\(dqsyno\(dq compression=\(dqmetadata\(dq introducer=\(dqfalse\(dq skipIntroductionRemovals=\(dqfalse\(dq introducedBy=\(dq\(dq>
  156. <address>dynamic</address>
  157. <paused>false</paused>
  158. <autoAcceptFolders>false</autoAcceptFolders>
  159. <maxSendKbps>0</maxSendKbps>
  160. <maxRecvKbps>0</maxRecvKbps>
  161. <ignoredFolder time=\(dq2022\-01\-09T19:09:52Z\(dq id=\(dqbr63e\-wyhb7\(dq label=\(dqFoo\(dq></ignoredFolder>
  162. <maxRequestKiB>0</maxRequestKiB>
  163. <untrusted>false</untrusted>
  164. <remoteGUIPort>0</remoteGUIPort>
  165. </device>
  166. <gui enabled=\(dqtrue\(dq tls=\(dqfalse\(dq debugging=\(dqfalse\(dq>
  167. <address>127.0.0.1:8384</address>
  168. <apikey>k1dnz1Dd0rzTBjjFFh7CXPnrF12C49B1</apikey>
  169. <theme>default</theme>
  170. </gui>
  171. <ldap></ldap>
  172. <options>
  173. <listenAddress>default</listenAddress>
  174. <globalAnnounceServer>default</globalAnnounceServer>
  175. <globalAnnounceEnabled>true</globalAnnounceEnabled>
  176. <localAnnounceEnabled>true</localAnnounceEnabled>
  177. <localAnnouncePort>21027</localAnnouncePort>
  178. <localAnnounceMCAddr>[ff12::8384]:21027</localAnnounceMCAddr>
  179. <maxSendKbps>0</maxSendKbps>
  180. <maxRecvKbps>0</maxRecvKbps>
  181. <reconnectionIntervalS>60</reconnectionIntervalS>
  182. <relaysEnabled>true</relaysEnabled>
  183. <relayReconnectIntervalM>10</relayReconnectIntervalM>
  184. <startBrowser>true</startBrowser>
  185. <natEnabled>true</natEnabled>
  186. <natLeaseMinutes>60</natLeaseMinutes>
  187. <natRenewalMinutes>30</natRenewalMinutes>
  188. <natTimeoutSeconds>10</natTimeoutSeconds>
  189. <urAccepted>0</urAccepted>
  190. <urSeen>0</urSeen>
  191. <urUniqueID></urUniqueID>
  192. <urURL>https://data.syncthing.net/newdata</urURL>
  193. <urPostInsecurely>false</urPostInsecurely>
  194. <urInitialDelayS>1800</urInitialDelayS>
  195. <autoUpgradeIntervalH>12</autoUpgradeIntervalH>
  196. <upgradeToPreReleases>false</upgradeToPreReleases>
  197. <keepTemporariesH>24</keepTemporariesH>
  198. <cacheIgnoredFiles>false</cacheIgnoredFiles>
  199. <progressUpdateIntervalS>5</progressUpdateIntervalS>
  200. <limitBandwidthInLan>false</limitBandwidthInLan>
  201. <minHomeDiskFree unit=\(dq%\(dq>1</minHomeDiskFree>
  202. <releasesURL>https://upgrades.syncthing.net/meta.json</releasesURL>
  203. <overwriteRemoteDeviceNamesOnConnect>false</overwriteRemoteDeviceNamesOnConnect>
  204. <tempIndexMinBlocks>10</tempIndexMinBlocks>
  205. <unackedNotificationID>authenticationUserAndPassword</unackedNotificationID>
  206. <trafficClass>0</trafficClass>
  207. <setLowPriority>true</setLowPriority>
  208. <maxFolderConcurrency>0</maxFolderConcurrency>
  209. <crashReportingURL>https://crash.syncthing.net/newcrash</crashReportingURL>
  210. <crashReportingEnabled>true</crashReportingEnabled>
  211. <stunKeepaliveStartS>180</stunKeepaliveStartS>
  212. <stunKeepaliveMinS>20</stunKeepaliveMinS>
  213. <stunServer>default</stunServer>
  214. <databaseTuning>auto</databaseTuning>
  215. <maxConcurrentIncomingRequestKiB>0</maxConcurrentIncomingRequestKiB>
  216. <announceLANAddresses>true</announceLANAddresses>
  217. <sendFullIndexOnUpgrade>false</sendFullIndexOnUpgrade>
  218. <connectionLimitEnough>0</connectionLimitEnough>
  219. <connectionLimitMax>0</connectionLimitMax>
  220. <insecureAllowOldTLSVersions>false</insecureAllowOldTLSVersions>
  221. </options>
  222. <remoteIgnoredDevice time=\(dq2022\-01\-09T20:02:01Z\(dq id=\(dq5SYI2FS\-LW6YAXI\-JJDYETS\-NDBBPIO\-256MWBO\-XDPXWVG\-24QPUM4\-PDW4UQU\(dq name=\(dqbugger\(dq address=\(dq192.168.0.20:22000\(dq></remoteIgnoredDevice>
  223. <defaults>
  224. <folder id=\(dq\(dq label=\(dq\(dq path=\(dq~\(dq type=\(dqsendreceive\(dq rescanIntervalS=\(dq3600\(dq fsWatcherEnabled=\(dqtrue\(dq fsWatcherDelayS=\(dq10\(dq ignorePerms=\(dqfalse\(dq autoNormalize=\(dqtrue\(dq>
  225. <filesystemType>basic</filesystemType>
  226. <device id=\(dqS7UKX27\-GI7ZTXS\-GC6RKUA\-7AJGZ44\-C6NAYEB\-HSKTJQK\-KJHU2NO\-CWV7EQW\(dq introducedBy=\(dq\(dq>
  227. <encryptionPassword></encryptionPassword>
  228. </device>
  229. <minDiskFree unit=\(dq%\(dq>1</minDiskFree>
  230. <versioning>
  231. <cleanupIntervalS>3600</cleanupIntervalS>
  232. <fsPath></fsPath>
  233. <fsType>basic</fsType>
  234. </versioning>
  235. <copiers>0</copiers>
  236. <pullerMaxPendingKiB>0</pullerMaxPendingKiB>
  237. <hashers>0</hashers>
  238. <order>random</order>
  239. <ignoreDelete>false</ignoreDelete>
  240. <scanProgressIntervalS>0</scanProgressIntervalS>
  241. <pullerPauseS>0</pullerPauseS>
  242. <maxConflicts>10</maxConflicts>
  243. <disableSparseFiles>false</disableSparseFiles>
  244. <disableTempIndexes>false</disableTempIndexes>
  245. <paused>false</paused>
  246. <weakHashThresholdPct>25</weakHashThresholdPct>
  247. <markerName>.stfolder</markerName>
  248. <copyOwnershipFromParent>false</copyOwnershipFromParent>
  249. <modTimeWindowS>0</modTimeWindowS>
  250. <maxConcurrentWrites>2</maxConcurrentWrites>
  251. <disableFsync>false</disableFsync>
  252. <blockPullOrder>standard</blockPullOrder>
  253. <copyRangeMethod>standard</copyRangeMethod>
  254. <caseSensitiveFS>false</caseSensitiveFS>
  255. <junctionsAsDirs>false</junctionsAsDirs>
  256. <syncOwnership>false</syncOwnership>
  257. <sendOwnership>false</sendOwnership>
  258. <syncXattrs>false</syncXattrs>
  259. <sendXattrs>false</sendXattrs>
  260. </folder>
  261. <device id=\(dq\(dq compression=\(dqmetadata\(dq introducer=\(dqfalse\(dq skipIntroductionRemovals=\(dqfalse\(dq introducedBy=\(dq\(dq>
  262. <address>dynamic</address>
  263. <paused>false</paused>
  264. <autoAcceptFolders>false</autoAcceptFolders>
  265. <maxSendKbps>0</maxSendKbps>
  266. <maxRecvKbps>0</maxRecvKbps>
  267. <maxRequestKiB>0</maxRequestKiB>
  268. <untrusted>false</untrusted>
  269. <remoteGUIPort>0</remoteGUIPort>
  270. </device>
  271. </defaults>
  272. </configuration>
  273. .ft P
  274. .fi
  275. .UNINDENT
  276. .UNINDENT
  277. .SH CONFIGURATION ELEMENT
  278. .INDENT 0.0
  279. .INDENT 3.5
  280. .sp
  281. .nf
  282. .ft C
  283. <configuration version=\(dq37\(dq>
  284. <folder></folder>
  285. <device></device>
  286. <gui></gui>
  287. <ldap></ldap>
  288. <options></options>
  289. <remoteIgnoredDevice></remoteIgnoredDevice>
  290. <defaults></defaults>
  291. </configuration>
  292. .ft P
  293. .fi
  294. .UNINDENT
  295. .UNINDENT
  296. .sp
  297. This is the root element. It has one attribute:
  298. .INDENT 0.0
  299. .TP
  300. .B version
  301. The config version. Increments whenever a change is made that requires
  302. migration from previous formats.
  303. .UNINDENT
  304. .sp
  305. It contains the elements described in the following sections and any number of
  306. this additional child element:
  307. .INDENT 0.0
  308. .TP
  309. .B remoteIgnoredDevice
  310. Contains the ID of the device that should be ignored. Connection attempts
  311. from this device are logged to the console but never displayed in the web
  312. GUI.
  313. .UNINDENT
  314. .SH FOLDER ELEMENT
  315. .INDENT 0.0
  316. .INDENT 3.5
  317. .sp
  318. .nf
  319. .ft C
  320. <folder id=\(dqdefault\(dq label=\(dqDefault Folder\(dq path=\(dq/Users/jb/Sync/\(dq type=\(dqsendreceive\(dq rescanIntervalS=\(dq3600\(dq fsWatcherEnabled=\(dqtrue\(dq fsWatcherDelayS=\(dq10\(dq ignorePerms=\(dqfalse\(dq autoNormalize=\(dqtrue\(dq>
  321. <filesystemType>basic</filesystemType>
  322. <device id=\(dqS7UKX27\-GI7ZTXS\-GC6RKUA\-7AJGZ44\-C6NAYEB\-HSKTJQK\-KJHU2NO\-CWV7EQW\(dq introducedBy=\(dq\(dq>
  323. <encryptionPassword></encryptionPassword>
  324. </device>
  325. <minDiskFree unit=\(dq%\(dq>1</minDiskFree>
  326. <versioning>
  327. <cleanupIntervalS>3600</cleanupIntervalS>
  328. <fsPath></fsPath>
  329. <fsType>basic</fsType>
  330. </versioning>
  331. <copiers>0</copiers>
  332. <pullerMaxPendingKiB>0</pullerMaxPendingKiB>
  333. <hashers>0</hashers>
  334. <order>random</order>
  335. <ignoreDelete>false</ignoreDelete>
  336. <scanProgressIntervalS>0</scanProgressIntervalS>
  337. <pullerPauseS>0</pullerPauseS>
  338. <maxConflicts>\-1</maxConflicts>
  339. <disableSparseFiles>false</disableSparseFiles>
  340. <disableTempIndexes>false</disableTempIndexes>
  341. <paused>false</paused>
  342. <weakHashThresholdPct>25</weakHashThresholdPct>
  343. <markerName>.stfolder</markerName>
  344. <copyOwnershipFromParent>false</copyOwnershipFromParent>
  345. <modTimeWindowS>0</modTimeWindowS>
  346. <maxConcurrentWrites>2</maxConcurrentWrites>
  347. <disableFsync>false</disableFsync>
  348. <blockPullOrder>standard</blockPullOrder>
  349. <copyRangeMethod>standard</copyRangeMethod>
  350. <caseSensitiveFS>false</caseSensitiveFS>
  351. <junctionsAsDirs>false</junctionsAsDirs>
  352. <syncOwnership>false</syncOwnership>
  353. <sendOwnership>false</sendOwnership>
  354. <syncXattrs>false</syncXattrs>
  355. <sendXattrs>false</sendXattrs>
  356. </folder>
  357. .ft P
  358. .fi
  359. .UNINDENT
  360. .UNINDENT
  361. .sp
  362. One or more \fBfolder\fP elements must be present in the file. Each element
  363. describes one folder. The following attributes may be set on the \fBfolder\fP
  364. element:
  365. .INDENT 0.0
  366. .TP
  367. .B id (mandatory)
  368. The folder ID, which must be unique.
  369. .UNINDENT
  370. .INDENT 0.0
  371. .TP
  372. .B label
  373. The label of a folder is a human readable and descriptive local name. May
  374. be different on each device, empty, and/or identical to other folder
  375. labels. (optional)
  376. .UNINDENT
  377. .INDENT 0.0
  378. .TP
  379. .B filesystemType
  380. The internal file system implementation used to access this folder, detailed
  381. in a \fI\%separate chapter\fP\&.
  382. .UNINDENT
  383. .INDENT 0.0
  384. .TP
  385. .B path (mandatory)
  386. The path to the directory where the folder is stored on this
  387. device; not sent to other devices.
  388. .UNINDENT
  389. .INDENT 0.0
  390. .TP
  391. .B type
  392. Controls how the folder is handled by Syncthing. Possible values are:
  393. .INDENT 7.0
  394. .TP
  395. .B \fBsendreceive\fP
  396. The folder is in default mode. Sending local and accepting remote changes.
  397. Note that this type was previously called “readwrite” which is deprecated
  398. but still accepted in incoming configs.
  399. .TP
  400. .B \fBsendonly\fP
  401. The folder is in “send only” mode – it will not be modified by
  402. Syncthing on this device.
  403. Note that this type was previously called “readonly” which is deprecated
  404. but still accepted in incoming configs.
  405. .TP
  406. .B \fBreceiveonly\fP
  407. The folder is in “receive only” mode – it will not propagate
  408. changes to other devices.
  409. .TP
  410. .B \fBreceiveencrypted\fP
  411. Must be used on untrusted devices, where the data cannot be decrypted
  412. because no folder password was entered. See \fI\%Untrusted (Encrypted) Devices\fP\&.
  413. .UNINDENT
  414. .UNINDENT
  415. .INDENT 0.0
  416. .TP
  417. .B rescanIntervalS
  418. The rescan interval, in seconds. Can be set to \fB0\fP to disable when external
  419. plugins are used to trigger rescans.
  420. .UNINDENT
  421. .INDENT 0.0
  422. .TP
  423. .B fsWatcherEnabled
  424. If set to \fBtrue\fP, this detects changes to files in the folder and scans them.
  425. .UNINDENT
  426. .INDENT 0.0
  427. .TP
  428. .B fsWatcherDelayS
  429. The duration during which changes detected are accumulated, before a scan is
  430. scheduled (only takes effect if \fI\%fsWatcherEnabled\fP is set to \fBtrue\fP).
  431. .UNINDENT
  432. .INDENT 0.0
  433. .TP
  434. .B ignorePerms
  435. If \fBtrue\fP, files originating from this folder will be announced to remote
  436. devices with the “no permission bits” flag. The remote devices will use
  437. whatever their default permission setting is when creating the files. The
  438. primary use case is for file systems that do not support permissions, such
  439. as FAT, or environments where changing permissions is impossible.
  440. .UNINDENT
  441. .INDENT 0.0
  442. .TP
  443. .B autoNormalize
  444. Automatically correct UTF\-8 normalization errors found in file names. The
  445. mechanism and how to set it up is described in a \fI\%separate chapter\fP\&.
  446. .UNINDENT
  447. .sp
  448. The following child elements may exist:
  449. .INDENT 0.0
  450. .TP
  451. .B device
  452. These must have the \fBid\fP attribute and can have an \fBintroducedBy\fP
  453. attribute, identifying the device that introduced us to share this folder
  454. with the given device. If the original introducer unshares this folder with
  455. this device, our device will follow and unshare the folder (subject to
  456. \fI\%skipIntroductionRemovals\fP being \fBfalse\fP on the introducer device).
  457. .sp
  458. All mentioned devices are those that will be sharing the folder in question.
  459. Each mentioned device must have a separate \fBdevice\fP element later in the file.
  460. It is customary that the local device ID is included in all folders.
  461. Syncthing will currently add this automatically if it is not present in
  462. the configuration file.
  463. .sp
  464. The \fBencryptionPassword\fP sub\-element contains the secret needed to decrypt
  465. this folder’s data on the remote device. If left empty, the data is plainly
  466. accessible (but still protected by the transport encryption). The mechanism
  467. and how to set it up is described in a \fI\%separate chapter\fP\&.
  468. .UNINDENT
  469. .INDENT 0.0
  470. .TP
  471. .B minDiskFree
  472. The minimum required free space that should be available on the disk this
  473. folder resides. The folder will be stopped when the value drops below the
  474. threshold. The element content is interpreted according to the given
  475. \fBunit\fP attribute. Accepted \fBunit\fP values are \fB%\fP (percent of the disk
  476. / volume size), \fBkB\fP, \fBMB\fP, \fBGB\fP and \fBTB\fP\&. Set to zero to disable.
  477. .UNINDENT
  478. .INDENT 0.0
  479. .TP
  480. .B versioning
  481. Specifies a versioning configuration.
  482. .sp
  483. \fBSEE ALSO:\fP
  484. .INDENT 7.0
  485. .INDENT 3.5
  486. \fI\%File Versioning\fP
  487. .UNINDENT
  488. .UNINDENT
  489. .UNINDENT
  490. .INDENT 0.0
  491. .TP
  492. .B copiers
  493. .TP
  494. .B hashers
  495. The number of copier and hasher routines to use, or \fB0\fP for the
  496. system determined optimums. These are low\-level performance options for
  497. advanced users only; do not change unless requested to or you’ve actually
  498. read and understood the code yourself. :)
  499. .UNINDENT
  500. .INDENT 0.0
  501. .TP
  502. .B pullerMaxPendingKiB
  503. Controls when we stop sending requests to other devices once we’ve got this
  504. much unserved requests. The number of pullers is automatically adjusted
  505. based on this desired amount of outstanding request data.
  506. .UNINDENT
  507. .INDENT 0.0
  508. .TP
  509. .B order
  510. The order in which needed files should be pulled from the cluster. It has
  511. no effect when the folder type is “send only”. The possibles values are:
  512. .INDENT 7.0
  513. .TP
  514. .B \fBrandom\fP (default)
  515. Pull files in random order. This optimizes for balancing resources among
  516. the devices in a cluster.
  517. .TP
  518. .B \fBalphabetic\fP
  519. Pull files ordered by file name alphabetically.
  520. .TP
  521. .B \fBsmallestFirst\fP, \fBlargestFirst\fP
  522. Pull files ordered by file size; smallest and largest first respectively.
  523. .TP
  524. .B \fBoldestFirst\fP, \fBnewestFirst\fP
  525. Pull files ordered by modification time; oldest and newest first
  526. respectively.
  527. .UNINDENT
  528. .sp
  529. Note that the scanned files are sent in batches and the sorting is applied
  530. only to the already discovered files. This means the sync might start with
  531. a 1 GB file even if there is 1 KB file available on the source device until
  532. the 1 KB becomes known to the pulling device.
  533. .UNINDENT
  534. .INDENT 0.0
  535. .TP
  536. .B ignoreDelete
  537. .
  538. \fBWARNING:\fP
  539. .INDENT 7.0
  540. .INDENT 3.5
  541. Enabling this is highly discouraged \- use at your own risk. You have been warned.
  542. .UNINDENT
  543. .UNINDENT
  544. .sp
  545. When set to \fBtrue\fP, this device will pretend not to see instructions to
  546. delete files from other devices. The mechanism is described in a
  547. \fI\%separate chapter\fP\&.
  548. .UNINDENT
  549. .INDENT 0.0
  550. .TP
  551. .B scanProgressIntervalS
  552. The interval in seconds with which scan progress information is sent to the GUI. Setting to \fB0\fP
  553. will cause Syncthing to use the default value of two.
  554. .UNINDENT
  555. .INDENT 0.0
  556. .TP
  557. .B pullerPauseS
  558. Tweak for rate limiting the puller when it retries pulling files. Don’t
  559. change this unless you know what you’re doing.
  560. .UNINDENT
  561. .INDENT 0.0
  562. .TP
  563. .B maxConflicts
  564. The maximum number of conflict copies to keep around for any given file.
  565. The default, \fB\-1\fP, means an unlimited number. Setting this to \fB0\fP disables
  566. conflict copies altogether.
  567. .UNINDENT
  568. .INDENT 0.0
  569. .TP
  570. .B disableSparseFiles
  571. By default, blocks containing all zeros are not written, causing files
  572. to be sparse on filesystems that support this feature. When set to \fBtrue\fP,
  573. sparse files will not be created.
  574. .UNINDENT
  575. .INDENT 0.0
  576. .TP
  577. .B disableTempIndexes
  578. By default, devices exchange information about blocks available in
  579. transfers that are still in progress, which allows other devices to
  580. download parts of files that are not yet fully downloaded on your own
  581. device, essentially making transfers more torrent like. When set to
  582. \fBtrue\fP, such information is not exchanged for this folder.
  583. .UNINDENT
  584. .INDENT 0.0
  585. .TP
  586. .B paused
  587. True if this folder is (temporarily) suspended.
  588. .UNINDENT
  589. .INDENT 0.0
  590. .TP
  591. .B weakHashThresholdPct
  592. Use weak hash if more than the given percentage of the file has changed. Set
  593. to \fB\-1\fP to always use weak hash. Default is \fB25\fP\&.
  594. .UNINDENT
  595. .INDENT 0.0
  596. .TP
  597. .B markerName
  598. Name of a directory or file in the folder root to be used as
  599. \fI\%How do I serve a folder from a read only filesystem?\fP\&. Default is \fB\&.stfolder\fP\&.
  600. .UNINDENT
  601. .INDENT 0.0
  602. .TP
  603. .B copyOwnershipFromParent
  604. On Unix systems, tries to copy file/folder ownership from the parent directory (the directory it’s located in).
  605. Requires running Syncthing as a privileged user, or granting it additional capabilities (e.g. CAP_CHOWN on Linux).
  606. .UNINDENT
  607. .INDENT 0.0
  608. .TP
  609. .B modTimeWindowS
  610. Allowed modification timestamp difference when comparing files for
  611. equivalence. To be used on file systems which have unstable
  612. modification timestamps that might change after being recorded
  613. during the last write operation. Default is \fB2\fP on Android when the
  614. folder is located on a FAT partition, and \fB0\fP otherwise.
  615. .UNINDENT
  616. .INDENT 0.0
  617. .TP
  618. .B maxConcurrentWrites
  619. Maximum number of concurrent write operations while syncing. Increasing this might increase or
  620. decrease disk performance, depending on the underlying storage. Default is \fB2\fP\&.
  621. .UNINDENT
  622. .INDENT 0.0
  623. .TP
  624. .B disableFsync
  625. .
  626. \fBWARNING:\fP
  627. .INDENT 7.0
  628. .INDENT 3.5
  629. This is a known insecure option \- use at your own risk.
  630. .UNINDENT
  631. .UNINDENT
  632. .sp
  633. Disables committing file operations to disk before recording them in the
  634. database. Disabling fsync can lead to data corruption. The mechanism is
  635. described in a \fI\%separate chapter\fP\&.
  636. .UNINDENT
  637. .INDENT 0.0
  638. .TP
  639. .B blockPullOrder
  640. Order in which the blocks of a file are downloaded. This option controls how quickly different parts of the
  641. file spread between the connected devices, at the cost of causing strain on the storage.
  642. .sp
  643. Available options:
  644. .INDENT 7.0
  645. .TP
  646. .B \fBstandard\fP (default)
  647. The blocks of a file are split into N equal continuous sequences, where N is the number of connected
  648. devices. Each device starts downloading its own sequence, after which it picks other devices
  649. sequences at random. Provides acceptable data distribution and minimal spinning disk strain.
  650. .TP
  651. .B \fBrandom\fP
  652. The blocks of a file are downloaded in a random order. Provides great data distribution, but very taxing on
  653. spinning disk drives.
  654. .TP
  655. .B \fBinOrder\fP
  656. The blocks of a file are downloaded sequentially, from start to finish. Spinning disk drive friendly, but provides
  657. no improvements to data distribution.
  658. .UNINDENT
  659. .UNINDENT
  660. .INDENT 0.0
  661. .TP
  662. .B copyRangeMethod
  663. Provides a choice of method for copying data between files. This can be
  664. used to optimise copies on network filesystems, improve speed of large
  665. copies or clone the data using copy\-on\-write functionality if the underlying
  666. filesystem supports it. The mechanism is described in a \fI\%separate
  667. chapter\fP\&.
  668. .UNINDENT
  669. .INDENT 0.0
  670. .TP
  671. .B caseSensitiveFS
  672. Affects performance by disabling the extra safety checks for case
  673. insensitive filesystems. The mechanism and how to set it up is described in
  674. a \fI\%separate chapter\fP\&.
  675. .UNINDENT
  676. .INDENT 0.0
  677. .TP
  678. .B junctionsAsDirs
  679. NTFS directory junctions are treated as ordinary directories, if this is set
  680. to \fBtrue\fP\&.
  681. .UNINDENT
  682. .INDENT 0.0
  683. .TP
  684. .B syncOwnership
  685. File and directory ownership is synced when this is set to \fBtrue\fP\&. See
  686. \fI\%syncOwnership\fP for more information.
  687. .UNINDENT
  688. .INDENT 0.0
  689. .TP
  690. .B sendOwnership
  691. File and directory ownership information is scanned when this is set to
  692. \fBtrue\fP\&. See \fI\%sendOwnership\fP for more information.
  693. .UNINDENT
  694. .INDENT 0.0
  695. .TP
  696. .B syncXattrs
  697. File and directory extended attributes are synced when this is set to
  698. \fBtrue\fP\&. See \fI\%syncXattrs\fP for more information.
  699. .UNINDENT
  700. .INDENT 0.0
  701. .TP
  702. .B sendXattrs
  703. File and directory extended attributes are scanned and sent to other
  704. devices when this is set to \fBtrue\fP\&. See
  705. \fI\%sendXattrs\fP for more information.
  706. .UNINDENT
  707. .SH DEVICE ELEMENT
  708. .INDENT 0.0
  709. .INDENT 3.5
  710. .sp
  711. .nf
  712. .ft C
  713. <device id=\(dqS7UKX27\-GI7ZTXS\-GC6RKUA\-7AJGZ44\-C6NAYEB\-HSKTJQK\-KJHU2NO\-CWV7EQW\(dq name=\(dqsyno\(dq compression=\(dqmetadata\(dq introducer=\(dqfalse\(dq skipIntroductionRemovals=\(dqfalse\(dq introducedBy=\(dq2CYF2WQ\-AKZO2QZ\-JAKWLYD\-AGHMQUM\-BGXUOIS\-GYILW34\-HJG3DUK\-LRRYQAR\(dq>
  714. <address>dynamic</address>
  715. <paused>false</paused>
  716. <autoAcceptFolders>false</autoAcceptFolders>
  717. <maxSendKbps>0</maxSendKbps>
  718. <maxRecvKbps>0</maxRecvKbps>
  719. <ignoredFolder time=\(dq2022\-01\-09T19:09:52Z\(dq id=\(dqbr63e\-wyhb7\(dq label=\(dqFoo\(dq></ignoredFolder>
  720. <maxRequestKiB>0</maxRequestKiB>
  721. <untrusted>false</untrusted>
  722. <remoteGUIPort>0</remoteGUIPort>
  723. <numConnections>0</numConnections>
  724. </device>
  725. <device id=\(dq2CYF2WQ\-AKZO2QZ\-JAKWLYD\-AGHMQUM\-BGXUOIS\-GYILW34\-HJG3DUK\-LRRYQAR\(dq name=\(dqsyno local\(dq compression=\(dqmetadata\(dq introducer=\(dqtrue\(dq skipIntroductionRemovals=\(dqfalse\(dq introducedBy=\(dq\(dq>
  726. <address>tcp://192.0.2.1:22001</address>
  727. <paused>true</paused>
  728. <allowedNetwork>192.168.0.0/16</allowedNetwork>
  729. <autoAcceptFolders>false</autoAcceptFolders>
  730. <maxSendKbps>100</maxSendKbps>
  731. <maxRecvKbps>100</maxRecvKbps>
  732. <maxRequestKiB>65536</maxRequestKiB>
  733. <untrusted>false</untrusted>
  734. <remoteGUIPort>8384</remoteGUIPort>
  735. <numConnections>0</numConnections>
  736. </device>
  737. .ft P
  738. .fi
  739. .UNINDENT
  740. .UNINDENT
  741. .sp
  742. One or more \fBdevice\fP elements must be present in the file. Each element
  743. describes a device participating in the cluster. It is customary to include a
  744. \fBdevice\fP element for the local device; Syncthing will currently add one if
  745. it is not present. The following attributes may be set on the \fBdevice\fP
  746. element:
  747. .INDENT 0.0
  748. .TP
  749. .B id (mandatory)
  750. The \fI\%device ID\fP\&.
  751. .UNINDENT
  752. .INDENT 0.0
  753. .TP
  754. .B name
  755. A friendly name for the device. (optional)
  756. .UNINDENT
  757. .INDENT 0.0
  758. .TP
  759. .B compression
  760. Whether to use protocol compression when sending messages to this device.
  761. The possible values are:
  762. .INDENT 7.0
  763. .TP
  764. .B \fBmetadata\fP
  765. Compress metadata packets, such as index information. Metadata is
  766. usually very compression friendly so this is a good default.
  767. .TP
  768. .B \fBalways\fP
  769. Compress all packets, including file data. This is recommended if the
  770. folders contents are mainly compressible data such as documents or
  771. text files.
  772. .TP
  773. .B \fBnever\fP
  774. Disable all compression.
  775. .UNINDENT
  776. .UNINDENT
  777. .INDENT 0.0
  778. .TP
  779. .B introducer
  780. Set to true if this device should be trusted as an introducer, i.e. we
  781. should copy their list of devices per folder when connecting.
  782. .sp
  783. \fBSEE ALSO:\fP
  784. .INDENT 7.0
  785. .INDENT 3.5
  786. \fI\%Introducer Configuration\fP
  787. .UNINDENT
  788. .UNINDENT
  789. .UNINDENT
  790. .INDENT 0.0
  791. .TP
  792. .B skipIntroductionRemovals
  793. Set to true if you wish to follow only introductions and not de\-introductions.
  794. For example, if this is set, we would not remove a device that we were introduced
  795. to even if the original introducer is no longer listing the remote device as known.
  796. .UNINDENT
  797. .INDENT 0.0
  798. .TP
  799. .B introducedBy
  800. Defines which device has introduced us to this device. Used only for following de\-introductions.
  801. .UNINDENT
  802. .INDENT 0.0
  803. .TP
  804. .B certName
  805. The device certificate’s common name, if it is not the default “syncthing”.
  806. .UNINDENT
  807. .sp
  808. From the following child elements at least one \fBaddress\fP child must exist.
  809. .INDENT 0.0
  810. .TP
  811. .B address (mandatory: At least one must be present.)
  812. Contains an address or host name to use when attempting to connect to this device.
  813. Entries other than \fBdynamic\fP need a protocol specific prefix. For the TCP protocol
  814. the prefixes \fBtcp://\fP (dual\-stack), \fBtcp4://\fP (IPv4 only) or \fBtcp6://\fP (IPv6 only) can be used.
  815. The prefixes for the QUIC protocol are analogous: \fBquic://\fP, \fBquic4://\fP and \fBquic6://\fP
  816. Note that IP addresses need not use IPv4 or IPv6 prefixes; these are optional. Accepted formats are:
  817. .INDENT 7.0
  818. .TP
  819. .B IPv4 address (\fBtcp://192.0.2.42\fP)
  820. The default port (22000) is used.
  821. .TP
  822. .B IPv4 address and port (\fBtcp://192.0.2.42:12345\fP)
  823. The address and port is used as given.
  824. .TP
  825. .B IPv6 address (\fBtcp://[2001:db8::23:42]\fP)
  826. The default port (22000) is used. The address must be enclosed in
  827. square brackets.
  828. .TP
  829. .B IPv6 address and port (\fBtcp://[2001:db8::23:42]:12345\fP)
  830. The address and port is used as given. The address must be enclosed in
  831. square brackets.
  832. .TP
  833. .B Host name (\fBtcp6://fileserver\fP)
  834. The host name will be used on the default port (22000) and connections
  835. will be attempted only via IPv6.
  836. .TP
  837. .B Host name and port (\fBtcp://fileserver:12345\fP)
  838. The host name will be used on the given port and connections will be
  839. attempted via both IPv4 and IPv6, depending on name resolution.
  840. .TP
  841. .B \fBdynamic\fP
  842. The word \fBdynamic\fP (without any prefix) means to use local and
  843. global discovery to find the device.
  844. .UNINDENT
  845. .sp
  846. You can set multiple addresses \fIand\fP combine it with the \fBdynamic\fP keyword
  847. for example:
  848. .INDENT 7.0
  849. .INDENT 3.5
  850. .sp
  851. .nf
  852. .ft C
  853. <device id=\(dq...\(dq>
  854. <address>tcp://192.0.2.1:22001</address>
  855. <address>quic://192.0.1.254:22000</address>
  856. <address>dynamic</address>
  857. </device>
  858. .ft P
  859. .fi
  860. .UNINDENT
  861. .UNINDENT
  862. .UNINDENT
  863. .INDENT 0.0
  864. .TP
  865. .B paused
  866. True if synchronization with this devices is (temporarily) suspended.
  867. .UNINDENT
  868. .INDENT 0.0
  869. .TP
  870. .B allowedNetwork
  871. If given, this restricts connections to this device to only this network.
  872. The mechanism is described in detail in a \fI\%separate chapter\fP).
  873. .UNINDENT
  874. .INDENT 0.0
  875. .TP
  876. .B autoAcceptFolders
  877. If \fBtrue\fP, folders shared from this remote device are automatically added
  878. and synced locally under the \fI\%default path\fP\&. For the
  879. folder name, Syncthing tries to use the label from the remote device, and if
  880. the same label already exists, it then tries to use the folder’s ID. If
  881. that exists as well, the folder is just offered to accept manually. A local
  882. folder already added with the same ID will just be shared rather than
  883. created separately.
  884. .UNINDENT
  885. .INDENT 0.0
  886. .TP
  887. .B maxSendKbps
  888. Maximum send rate to use for this device. Unit is kibibytes/second, despite
  889. the config name looking like kilobits/second.
  890. .UNINDENT
  891. .INDENT 0.0
  892. .TP
  893. .B maxRecvKbps
  894. Maximum receive rate to use for this device. Unit is kibibytes/second,
  895. despite the config name looking like kilobits/second.
  896. .UNINDENT
  897. .INDENT 0.0
  898. .TP
  899. .B ignoredFolder
  900. Contains the ID of the folder that should be ignored. This folder will
  901. always be skipped when advertised from the containing remote device,
  902. i.e. this will be logged, but there will be no dialog shown in the web GUI.
  903. .UNINDENT
  904. .INDENT 0.0
  905. .TP
  906. .B maxRequestKiB
  907. Maximum amount of data to have outstanding in requests towards this device.
  908. Unit is kibibytes.
  909. .UNINDENT
  910. .INDENT 0.0
  911. .TP
  912. .B remoteGUIPort
  913. If set to a positive integer, the GUI will display an HTTP link to the IP
  914. address which is currently used for synchronization. Only the TCP port is
  915. exchanged for the value specified here. Note that any port forwarding or
  916. firewall settings need to be done manually and the link will probably not
  917. work for link\-local IPv6 addresses because of modern browser limitations.
  918. .UNINDENT
  919. .INDENT 0.0
  920. .TP
  921. .B untrusted
  922. This boolean value marks a particular device as untrusted, which disallows
  923. ever sharing any unencrypted data with it. Every folder shared with that
  924. device then needs an encryption password set, or must already be of the
  925. “receive encrypted” type locally. Refer to the detailed explanation under
  926. \fI\%Untrusted (Encrypted) Devices\fP\&.
  927. .UNINDENT
  928. .INDENT 0.0
  929. .TP
  930. .B numConnections
  931. The number of connections to this device. See
  932. \fI\%numConnections\fP for more information.
  933. .UNINDENT
  934. .SH GUI ELEMENT
  935. .INDENT 0.0
  936. .INDENT 3.5
  937. .sp
  938. .nf
  939. .ft C
  940. <gui enabled=\(dqtrue\(dq tls=\(dqfalse\(dq debugging=\(dqfalse\(dq>
  941. <address>127.0.0.1:8384</address>
  942. <apikey>k1dnz1Dd0rzTBjjFFh7CXPnrF12C49B1</apikey>
  943. <theme>default</theme>
  944. </gui>
  945. .ft P
  946. .fi
  947. .UNINDENT
  948. .UNINDENT
  949. .sp
  950. There must be exactly one \fBgui\fP element. The GUI configuration is also used by
  951. the \fI\%REST API\fP and the \fI\%Event API\fP\&. The following attributes may be
  952. set on the \fBgui\fP element:
  953. .INDENT 0.0
  954. .TP
  955. .B enabled
  956. If not \fBtrue\fP, the GUI and API will not be started.
  957. .UNINDENT
  958. .INDENT 0.0
  959. .TP
  960. .B tls
  961. If set to \fBtrue\fP, TLS (HTTPS) will be enforced. Non\-HTTPS requests will
  962. be redirected to HTTPS. When set to \fBfalse\fP, TLS connections are
  963. still possible but not required.
  964. .UNINDENT
  965. .INDENT 0.0
  966. .TP
  967. .B debugging
  968. This enables \fI\%Profiling\fP and additional endpoints in the REST
  969. API, see \fI\%Debug Endpoints\fP\&.
  970. .UNINDENT
  971. .sp
  972. The following child elements may be present:
  973. .INDENT 0.0
  974. .TP
  975. .B address (mandatory: Exactly one element must be present.)
  976. Set the listen address. Allowed address formats are:
  977. .INDENT 7.0
  978. .TP
  979. .B IPv4 address and port (\fB127.0.0.1:8384\fP)
  980. The address and port are used as given.
  981. .TP
  982. .B IPv6 address and port (\fB[::1]:8384\fP)
  983. The address and port are used as given. The address must be enclosed in
  984. square brackets.
  985. .TP
  986. .B Wildcard and port (\fB0.0.0.0:12345\fP, \fB[::]:12345\fP, \fB:12345\fP)
  987. These are equivalent and will result in Syncthing listening on all
  988. interfaces via both IPv4 and IPv6.
  989. .TP
  990. .B UNIX socket location (\fB/var/run/st.sock\fP)
  991. If the address is an absolute path it is interpreted as the path to a UNIX socket.
  992. .UNINDENT
  993. .UNINDENT
  994. .INDENT 0.0
  995. .TP
  996. .B unixSocketPermissions
  997. When \fBaddress\fP is set to a UNIX socket location, set this to an octal value
  998. to override the default permissions of the socket.
  999. .UNINDENT
  1000. .INDENT 0.0
  1001. .TP
  1002. .B user
  1003. Set to require authentication.
  1004. .UNINDENT
  1005. .INDENT 0.0
  1006. .TP
  1007. .B password
  1008. Contains the bcrypt hash of the real password.
  1009. .UNINDENT
  1010. .INDENT 0.0
  1011. .TP
  1012. .B apikey
  1013. If set, this is the API key that enables usage of the REST interface.
  1014. .UNINDENT
  1015. .INDENT 0.0
  1016. .TP
  1017. .B insecureAdminAccess
  1018. If true, this allows access to the web GUI from outside (i.e. not localhost)
  1019. without authorization. A warning will displayed about this setting on startup.
  1020. .UNINDENT
  1021. .INDENT 0.0
  1022. .TP
  1023. .B insecureSkipHostcheck
  1024. When the GUI / API is bound to localhost, we enforce that the \fBHost\fP
  1025. header looks like localhost. This option bypasses that check.
  1026. .UNINDENT
  1027. .INDENT 0.0
  1028. .TP
  1029. .B insecureAllowFrameLoading
  1030. Allow rendering the GUI within an \fB<iframe>\fP, \fB<frame>\fP or \fB<object>\fP
  1031. by not setting the \fBX\-Frame\-Options: SAMEORIGIN\fP HTTP header. This may be
  1032. needed for serving the Syncthing GUI as part of a website through a proxy.
  1033. .UNINDENT
  1034. .INDENT 0.0
  1035. .TP
  1036. .B theme
  1037. The name of the theme to use.
  1038. .UNINDENT
  1039. .INDENT 0.0
  1040. .TP
  1041. .B authMode
  1042. Authentication mode to use. If not present, the authentication mode (static)
  1043. is controlled by the presence of user/password fields for backward compatibility.
  1044. .INDENT 7.0
  1045. .TP
  1046. .B \fBstatic\fP
  1047. Authentication using user and password.
  1048. .TP
  1049. .B \fBldap\fP
  1050. LDAP authentication. Requires ldap top level config section to be present.
  1051. .UNINDENT
  1052. .UNINDENT
  1053. .SH LDAP ELEMENT
  1054. .INDENT 0.0
  1055. .INDENT 3.5
  1056. .sp
  1057. .nf
  1058. .ft C
  1059. <ldap>
  1060. <address>localhost:389</address>
  1061. <bindDN>cn=%s,ou=users,dc=syncthing,dc=net</bindDN>
  1062. <transport>nontls</transport>
  1063. <insecureSkipVerify>false</insecureSkipVerify>
  1064. </ldap>
  1065. .ft P
  1066. .fi
  1067. .UNINDENT
  1068. .UNINDENT
  1069. .sp
  1070. The \fBldap\fP element contains LDAP configuration options. The mechanism is
  1071. described in detail under \fI\%LDAP Authentication\fP\&.
  1072. .INDENT 0.0
  1073. .TP
  1074. .B address (mandatory)
  1075. .INDENT 7.0
  1076. .INDENT 3.5
  1077. LDAP server address (server:port).
  1078. .UNINDENT
  1079. .UNINDENT
  1080. .UNINDENT
  1081. .INDENT 0.0
  1082. .TP
  1083. .B bindDN (mandatory)
  1084. .INDENT 7.0
  1085. .INDENT 3.5
  1086. BindDN for user authentication.
  1087. Special \fB%s\fP variable should be used to pass username to LDAP.
  1088. .UNINDENT
  1089. .UNINDENT
  1090. .UNINDENT
  1091. .INDENT 0.0
  1092. .TP
  1093. .B transport
  1094. .INDENT 7.0
  1095. .TP
  1096. .B \fBnontls\fP
  1097. Non secure connection.
  1098. .TP
  1099. .B \fBtls\fP
  1100. TLS secured connection.
  1101. .TP
  1102. .B \fBstarttls\fP
  1103. StartTLS connection mode.
  1104. .UNINDENT
  1105. .UNINDENT
  1106. .INDENT 0.0
  1107. .TP
  1108. .B insecureSkipVerify
  1109. Skip verification (\fBtrue\fP or \fBfalse\fP).
  1110. .UNINDENT
  1111. .INDENT 0.0
  1112. .TP
  1113. .B searchBaseDN
  1114. Base DN for user searches.
  1115. .UNINDENT
  1116. .INDENT 0.0
  1117. .TP
  1118. .B searchFilter
  1119. Search filter for user searches.
  1120. .UNINDENT
  1121. .SH OPTIONS ELEMENT
  1122. .INDENT 0.0
  1123. .INDENT 3.5
  1124. .sp
  1125. .nf
  1126. .ft C
  1127. <options>
  1128. <listenAddress>default</listenAddress>
  1129. <globalAnnounceServer>default</globalAnnounceServer>
  1130. <globalAnnounceEnabled>true</globalAnnounceEnabled>
  1131. <localAnnounceEnabled>true</localAnnounceEnabled>
  1132. <localAnnouncePort>21027</localAnnouncePort>
  1133. <localAnnounceMCAddr>[ff12::8384]:21027</localAnnounceMCAddr>
  1134. <maxSendKbps>0</maxSendKbps>
  1135. <maxRecvKbps>0</maxRecvKbps>
  1136. <reconnectionIntervalS>60</reconnectionIntervalS>
  1137. <relaysEnabled>true</relaysEnabled>
  1138. <relayReconnectIntervalM>10</relayReconnectIntervalM>
  1139. <startBrowser>true</startBrowser>
  1140. <natEnabled>true</natEnabled>
  1141. <natLeaseMinutes>60</natLeaseMinutes>
  1142. <natRenewalMinutes>30</natRenewalMinutes>
  1143. <natTimeoutSeconds>10</natTimeoutSeconds>
  1144. <urAccepted>0</urAccepted>
  1145. <urSeen>0</urSeen>
  1146. <urUniqueID></urUniqueID>
  1147. <urURL>https://data.syncthing.net/newdata</urURL>
  1148. <urPostInsecurely>false</urPostInsecurely>
  1149. <urInitialDelayS>1800</urInitialDelayS>
  1150. <autoUpgradeIntervalH>12</autoUpgradeIntervalH>
  1151. <upgradeToPreReleases>false</upgradeToPreReleases>
  1152. <keepTemporariesH>24</keepTemporariesH>
  1153. <cacheIgnoredFiles>false</cacheIgnoredFiles>
  1154. <progressUpdateIntervalS>5</progressUpdateIntervalS>
  1155. <limitBandwidthInLan>false</limitBandwidthInLan>
  1156. <minHomeDiskFree unit=\(dq%\(dq>1</minHomeDiskFree>
  1157. <releasesURL>https://upgrades.syncthing.net/meta.json</releasesURL>
  1158. <overwriteRemoteDeviceNamesOnConnect>false</overwriteRemoteDeviceNamesOnConnect>
  1159. <tempIndexMinBlocks>10</tempIndexMinBlocks>
  1160. <unackedNotificationID>authenticationUserAndPassword</unackedNotificationID>
  1161. <trafficClass>0</trafficClass>
  1162. <setLowPriority>true</setLowPriority>
  1163. <maxFolderConcurrency>0</maxFolderConcurrency>
  1164. <crashReportingURL>https://crash.syncthing.net/newcrash</crashReportingURL>
  1165. <crashReportingEnabled>true</crashReportingEnabled>
  1166. <stunKeepaliveStartS>180</stunKeepaliveStartS>
  1167. <stunKeepaliveMinS>20</stunKeepaliveMinS>
  1168. <stunServer>default</stunServer>
  1169. <databaseTuning>auto</databaseTuning>
  1170. <maxConcurrentIncomingRequestKiB>0</maxConcurrentIncomingRequestKiB>
  1171. <announceLANAddresses>true</announceLANAddresses>
  1172. <sendFullIndexOnUpgrade>false</sendFullIndexOnUpgrade>
  1173. <connectionLimitEnough>0</connectionLimitEnough>
  1174. <connectionLimitMax>0</connectionLimitMax>
  1175. <insecureAllowOldTLSVersions>false</insecureAllowOldTLSVersions>
  1176. </options>
  1177. .ft P
  1178. .fi
  1179. .UNINDENT
  1180. .UNINDENT
  1181. .sp
  1182. The \fBoptions\fP element contains all other global configuration options.
  1183. .INDENT 0.0
  1184. .TP
  1185. .B listenAddress
  1186. The listen address for incoming sync connections. See
  1187. \fI\%Listen Addresses\fP for the allowed syntax.
  1188. .UNINDENT
  1189. .INDENT 0.0
  1190. .TP
  1191. .B globalAnnounceServer
  1192. A URI to a global announce (discovery) server, or the word \fBdefault\fP to
  1193. include the default servers. Any number of globalAnnounceServer elements
  1194. may be present. The syntax for non\-default entries is that of an HTTP or
  1195. HTTPS URL. A number of options may be added as query options to the URL:
  1196. \fBinsecure\fP to prevent certificate validation (required for HTTP URLs)
  1197. and \fBid=<device ID>\fP to perform certificate pinning. The device ID to
  1198. use is printed by the discovery server on startup.
  1199. .UNINDENT
  1200. .INDENT 0.0
  1201. .TP
  1202. .B globalAnnounceEnabled
  1203. Whether to announce this device to the global announce (discovery) server,
  1204. and also use it to look up other devices.
  1205. .UNINDENT
  1206. .INDENT 0.0
  1207. .TP
  1208. .B localAnnounceEnabled
  1209. Whether to send announcements to the local LAN, also use such
  1210. announcements to find other devices.
  1211. .UNINDENT
  1212. .INDENT 0.0
  1213. .TP
  1214. .B localAnnouncePort
  1215. The port on which to listen and send IPv4 broadcast announcements to.
  1216. .UNINDENT
  1217. .INDENT 0.0
  1218. .TP
  1219. .B localAnnounceMCAddr
  1220. The group address and port to join and send IPv6 multicast announcements on.
  1221. .UNINDENT
  1222. .INDENT 0.0
  1223. .TP
  1224. .B maxSendKbps
  1225. Outgoing data rate limit, in kibibytes per second.
  1226. .UNINDENT
  1227. .INDENT 0.0
  1228. .TP
  1229. .B maxRecvKbps
  1230. Incoming data rate limits, in kibibytes per second.
  1231. .UNINDENT
  1232. .INDENT 0.0
  1233. .TP
  1234. .B reconnectionIntervalS
  1235. The number of seconds to wait between each attempt to connect to currently
  1236. unconnected devices.
  1237. .UNINDENT
  1238. .INDENT 0.0
  1239. .TP
  1240. .B relaysEnabled
  1241. When \fBtrue\fP, relays will be connected to and potentially used for device to device connections.
  1242. .UNINDENT
  1243. .INDENT 0.0
  1244. .TP
  1245. .B relayReconnectIntervalM
  1246. Sets the interval, in minutes, between relay reconnect attempts.
  1247. .UNINDENT
  1248. .INDENT 0.0
  1249. .TP
  1250. .B startBrowser
  1251. Whether to attempt to start a browser to show the GUI when Syncthing starts.
  1252. .UNINDENT
  1253. .INDENT 0.0
  1254. .TP
  1255. .B natEnabled
  1256. Whether to attempt to perform a UPnP and NAT\-PMP port mapping for
  1257. incoming sync connections.
  1258. .UNINDENT
  1259. .INDENT 0.0
  1260. .TP
  1261. .B natLeaseMinutes
  1262. Request a lease for this many minutes; zero to request a permanent lease.
  1263. .UNINDENT
  1264. .INDENT 0.0
  1265. .TP
  1266. .B natRenewalMinutes
  1267. Attempt to renew the lease after this many minutes.
  1268. .UNINDENT
  1269. .INDENT 0.0
  1270. .TP
  1271. .B natTimeoutSeconds
  1272. When scanning for UPnP devices, wait this long for responses.
  1273. .UNINDENT
  1274. .INDENT 0.0
  1275. .TP
  1276. .B urAccepted
  1277. Whether the user has accepted to submit anonymous usage data. The default,
  1278. \fB0\fP, mean the user has not made a choice, and Syncthing will ask at some
  1279. point in the future. \fB\-1\fP means no, a number above zero means that that
  1280. version of usage reporting has been accepted.
  1281. .UNINDENT
  1282. .INDENT 0.0
  1283. .TP
  1284. .B urSeen
  1285. The highest usage reporting version that has already been shown in the web GUI.
  1286. .UNINDENT
  1287. .INDENT 0.0
  1288. .TP
  1289. .B urUniqueID
  1290. The unique ID sent together with the usage report. Generated when usage
  1291. reporting is enabled.
  1292. .UNINDENT
  1293. .INDENT 0.0
  1294. .TP
  1295. .B urURL
  1296. The URL to post usage report data to, when enabled.
  1297. .UNINDENT
  1298. .INDENT 0.0
  1299. .TP
  1300. .B urPostInsecurely
  1301. When true, the UR URL can be http instead of https, or have a self\-signed
  1302. certificate. The default is \fBfalse\fP\&.
  1303. .UNINDENT
  1304. .INDENT 0.0
  1305. .TP
  1306. .B urInitialDelayS
  1307. The time to wait from startup for the first usage report to be sent. Allows
  1308. the system to stabilize before reporting statistics.
  1309. .UNINDENT
  1310. .INDENT 0.0
  1311. .TP
  1312. .B autoUpgradeIntervalH
  1313. Check for a newer version after this many hours. Set to \fB0\fP to disable
  1314. automatic upgrades.
  1315. .UNINDENT
  1316. .INDENT 0.0
  1317. .TP
  1318. .B upgradeToPreReleases
  1319. If \fBtrue\fP, automatic upgrades include release candidates (see
  1320. \fI\%Versions & Releases\fP).
  1321. .UNINDENT
  1322. .INDENT 0.0
  1323. .TP
  1324. .B keepTemporariesH
  1325. Keep temporary failed transfers for this many hours. While the temporaries
  1326. are kept, the data they contain need not be transferred again.
  1327. .UNINDENT
  1328. .INDENT 0.0
  1329. .TP
  1330. .B cacheIgnoredFiles
  1331. Whether to cache the results of ignore pattern evaluation. Performance
  1332. at the price of memory. Defaults to \fBfalse\fP as the cost for evaluating
  1333. ignores is usually not significant.
  1334. .UNINDENT
  1335. .INDENT 0.0
  1336. .TP
  1337. .B progressUpdateIntervalS
  1338. How often in seconds the progress of ongoing downloads is made available to
  1339. the GUI. Set to \fB\-1\fP to disable. Note that when disabled, the detailed
  1340. sync progress for Out of Sync Items which shows how much of each file has
  1341. been reused, copied, and downloaded will not work.
  1342. .UNINDENT
  1343. .INDENT 0.0
  1344. .TP
  1345. .B limitBandwidthInLan
  1346. Whether to apply bandwidth limits to devices in the same broadcast domain
  1347. as the local device.
  1348. .UNINDENT
  1349. .INDENT 0.0
  1350. .TP
  1351. .B minHomeDiskFree
  1352. The minimum required free space that should be available on the partition
  1353. holding the configuration and index. The element content is interpreted
  1354. according to the given \fBunit\fP attribute. Accepted \fBunit\fP values are
  1355. \fB%\fP (percent of the disk / volume size), \fBkB\fP, \fBMB\fP, \fBGB\fP and
  1356. \fBTB\fP\&. Set to zero to disable.
  1357. .UNINDENT
  1358. .INDENT 0.0
  1359. .TP
  1360. .B releasesURL
  1361. The URL from which release information is loaded, for automatic upgrades.
  1362. .UNINDENT
  1363. .INDENT 0.0
  1364. .TP
  1365. .B alwaysLocalNet
  1366. Network that should be considered as local given in CIDR notation.
  1367. .UNINDENT
  1368. .INDENT 0.0
  1369. .TP
  1370. .B overwriteRemoteDeviceNamesOnConnect
  1371. If set, device names will always be overwritten with the name given by
  1372. remote on each connection. By default, the name that the remote device
  1373. announces will only be adopted when a name has not already been set.
  1374. .UNINDENT
  1375. .INDENT 0.0
  1376. .TP
  1377. .B tempIndexMinBlocks
  1378. When exchanging index information for incomplete transfers, only take
  1379. into account files that have at least this many blocks.
  1380. .UNINDENT
  1381. .INDENT 0.0
  1382. .TP
  1383. .B unackedNotificationID
  1384. ID of a notification to be displayed in the web GUI. Will be removed once
  1385. the user acknowledged it (e.g. an transition notice on an upgrade).
  1386. .UNINDENT
  1387. .INDENT 0.0
  1388. .TP
  1389. .B trafficClass
  1390. Specify a type of service (TOS)/traffic class of outgoing packets.
  1391. .UNINDENT
  1392. .INDENT 0.0
  1393. .TP
  1394. .B stunServer
  1395. Server to be used for STUN, given as ip:port. The keyword \fBdefault\fP gets
  1396. expanded to
  1397. \fBstun.callwithus.com:3478\fP, \fBstun.counterpath.com:3478\fP,
  1398. \fBstun.counterpath.net:3478\fP, \fBstun.ekiga.net:3478\fP,
  1399. \fBstun.ideasip.com:3478\fP, \fBstun.internetcalls.com:3478\fP,
  1400. \fBstun.schlund.de:3478\fP, \fBstun.sipgate.net:10000\fP,
  1401. \fBstun.sipgate.net:3478\fP, \fBstun.voip.aebc.com:3478\fP,
  1402. \fBstun.voiparound.com:3478\fP, \fBstun.voipbuster.com:3478\fP,
  1403. \fBstun.voipstunt.com:3478\fP and \fBstun.xten.com:3478\fP (this is the default).
  1404. .UNINDENT
  1405. .INDENT 0.0
  1406. .TP
  1407. .B stunKeepaliveStartS
  1408. Interval in seconds between contacting a STUN server to maintain NAT
  1409. mapping. Default is \fB24\fP and you can set it to \fB0\fP to disable contacting
  1410. STUN servers. The interval is automatically reduced if needed, down to a
  1411. minimum of \fI\%stunKeepaliveMinS\fP\&.
  1412. .UNINDENT
  1413. .INDENT 0.0
  1414. .TP
  1415. .B stunKeepaliveMinS
  1416. Minimum for the \fI\%stunKeepaliveStartS\fP interval, in seconds.
  1417. .UNINDENT
  1418. .INDENT 0.0
  1419. .TP
  1420. .B setLowPriority
  1421. Syncthing will attempt to lower its process priority at startup.
  1422. Specifically: on Linux, set itself to a separate process group, set the
  1423. niceness level of that process group to nine and the I/O priority to
  1424. best effort level five; on other Unixes, set the process niceness level
  1425. to nine; on Windows, set the process priority class to below normal. To
  1426. disable this behavior, for example to control process priority yourself
  1427. as part of launching Syncthing, set this option to \fBfalse\fP\&.
  1428. .UNINDENT
  1429. .INDENT 0.0
  1430. .TP
  1431. .B maxFolderConcurrency
  1432. This option controls how many folders may concurrently be in I/O\-intensive
  1433. operations such as syncing or scanning. The mechanism is described in
  1434. detail in a \fI\%separate chapter\fP\&.
  1435. .UNINDENT
  1436. .INDENT 0.0
  1437. .TP
  1438. .B crashReportingURL
  1439. Server URL where \fI\%automatic crash reports\fP will be sent if
  1440. enabled.
  1441. .UNINDENT
  1442. .INDENT 0.0
  1443. .TP
  1444. .B crashReportingEnabled
  1445. Switch to opt out from the \fI\%automatic crash reporting\fP
  1446. feature. Set \fBfalse\fP to keep Syncthing from sending panic logs on serious
  1447. troubles. Defaults to \fBtrue\fP, to help the developers troubleshoot.
  1448. .UNINDENT
  1449. .INDENT 0.0
  1450. .TP
  1451. .B databaseTuning
  1452. Controls how Syncthing uses the backend key\-value database that stores the
  1453. index data and other persistent data it needs. The available options and
  1454. implications are explained in a \fI\%separate chapter\fP\&.
  1455. .UNINDENT
  1456. .INDENT 0.0
  1457. .TP
  1458. .B maxConcurrentIncomingRequestKiB
  1459. This limits how many bytes we have “in the air” in the form of response data
  1460. being read and processed.
  1461. .UNINDENT
  1462. .INDENT 0.0
  1463. .TP
  1464. .B announceLANAddresses
  1465. Enable (the default) or disable announcing private (RFC1918) LAN IP
  1466. addresses to global discovery.
  1467. .UNINDENT
  1468. .INDENT 0.0
  1469. .TP
  1470. .B sendFullIndexOnUpgrade
  1471. Controls whether all index data is resent when an upgrade has happened,
  1472. equivalent to starting Syncthing with \fI\%\-\-reset\-deltas\fP\&. This used
  1473. to be the default behavior in older versions, but is mainly useful as a
  1474. troubleshooting step and causes high database churn. The default is now
  1475. \fBfalse\fP\&.
  1476. .UNINDENT
  1477. .INDENT 0.0
  1478. .TP
  1479. .B featureFlag
  1480. Feature flags are simple strings that, when added to the configuration, may
  1481. unleash unfinished or still\-in\-development features to allow early user
  1482. testing. Any supported value will be separately announced with the feature,
  1483. so that regular users do not enable it by accident.
  1484. .UNINDENT
  1485. .INDENT 0.0
  1486. .TP
  1487. .B connectionLimitEnough
  1488. The number of connections at which we stop trying to connect to more
  1489. devices, zero meaning no limit. Does not affect incoming connections. The
  1490. mechanism is described in detail in a \fI\%separate chapter\fP\&.
  1491. .UNINDENT
  1492. .INDENT 0.0
  1493. .TP
  1494. .B connectionLimitMax
  1495. The maximum number of connections which we will allow in total, zero meaning
  1496. no limit. Affects incoming connections and prevents attempting outgoing
  1497. connections. The mechanism is described in detail in a \fI\%separate
  1498. chapter\fP\&.
  1499. .UNINDENT
  1500. .INDENT 0.0
  1501. .TP
  1502. .B insecureAllowOldTLSVersions
  1503. Only for compatibility with old versions of Syncthing on remote devices, as
  1504. detailed in \fI\%insecureAllowOldTLSVersions\fP\&.
  1505. .UNINDENT
  1506. .SH DEFAULTS ELEMENT
  1507. .INDENT 0.0
  1508. .INDENT 3.5
  1509. .sp
  1510. .nf
  1511. .ft C
  1512. <defaults>
  1513. <folder id=\(dq\(dq label=\(dq\(dq path=\(dq~\(dq type=\(dqsendreceive\(dq rescanIntervalS=\(dq3600\(dq fsWatcherEnabled=\(dqtrue\(dq fsWatcherDelayS=\(dq10\(dq ignorePerms=\(dqfalse\(dq autoNormalize=\(dqtrue\(dq>
  1514. <filesystemType>basic</filesystemType>
  1515. <device id=\(dqS7UKX27\-GI7ZTXS\-GC6RKUA\-7AJGZ44\-C6NAYEB\-HSKTJQK\-KJHU2NO\-CWV7EQW\(dq introducedBy=\(dq\(dq>
  1516. <encryptionPassword></encryptionPassword>
  1517. </device>
  1518. <minDiskFree unit=\(dq%\(dq>1</minDiskFree>
  1519. <versioning>
  1520. <cleanupIntervalS>3600</cleanupIntervalS>
  1521. <fsPath></fsPath>
  1522. <fsType>basic</fsType>
  1523. </versioning>
  1524. <copiers>0</copiers>
  1525. <pullerMaxPendingKiB>0</pullerMaxPendingKiB>
  1526. <hashers>0</hashers>
  1527. <order>random</order>
  1528. <ignoreDelete>false</ignoreDelete>
  1529. <scanProgressIntervalS>0</scanProgressIntervalS>
  1530. <pullerPauseS>0</pullerPauseS>
  1531. <maxConflicts>10</maxConflicts>
  1532. <disableSparseFiles>false</disableSparseFiles>
  1533. <disableTempIndexes>false</disableTempIndexes>
  1534. <paused>false</paused>
  1535. <weakHashThresholdPct>25</weakHashThresholdPct>
  1536. <markerName>.stfolder</markerName>
  1537. <copyOwnershipFromParent>false</copyOwnershipFromParent>
  1538. <modTimeWindowS>0</modTimeWindowS>
  1539. <maxConcurrentWrites>2</maxConcurrentWrites>
  1540. <disableFsync>false</disableFsync>
  1541. <blockPullOrder>standard</blockPullOrder>
  1542. <copyRangeMethod>standard</copyRangeMethod>
  1543. <caseSensitiveFS>false</caseSensitiveFS>
  1544. <junctionsAsDirs>false</junctionsAsDirs>
  1545. </folder>
  1546. <device id=\(dq\(dq compression=\(dqmetadata\(dq introducer=\(dqfalse\(dq skipIntroductionRemovals=\(dqfalse\(dq introducedBy=\(dq\(dq>
  1547. <address>dynamic</address>
  1548. <paused>false</paused>
  1549. <autoAcceptFolders>false</autoAcceptFolders>
  1550. <maxSendKbps>0</maxSendKbps>
  1551. <maxRecvKbps>0</maxRecvKbps>
  1552. <maxRequestKiB>0</maxRequestKiB>
  1553. <untrusted>false</untrusted>
  1554. <remoteGUIPort>0</remoteGUIPort>
  1555. <numConnections>0</numConnections>
  1556. </device>
  1557. <ignores>
  1558. <line>!foo2</line>
  1559. <line>// comment</line>
  1560. <line>(?d).DS_Store</line>
  1561. <line>*2</line>
  1562. <line>qu*</line>
  1563. </ignores>
  1564. </defaults>
  1565. .ft P
  1566. .fi
  1567. .UNINDENT
  1568. .UNINDENT
  1569. .sp
  1570. The \fBdefaults\fP element describes a template for newly added device and folder
  1571. options. These will be used when adding a new remote device or folder, either
  1572. through the GUI or the command line interface. The following child elements can
  1573. be present in the \fBdefaults\fP element:
  1574. .INDENT 0.0
  1575. .TP
  1576. .B device
  1577. Template for a \fBdevice\fP element, with the same internal structure. Any
  1578. fields here will be used for a newly added remote device. The \fBid\fP
  1579. attribute is meaningless in this context.
  1580. .UNINDENT
  1581. .INDENT 0.0
  1582. .TP
  1583. .B folder
  1584. Template for a \fBfolder\fP element, with the same internal structure. Any
  1585. fields here will be used for a newly added shared folder. The \fBid\fP
  1586. attribute is meaningless in this context.
  1587. .sp
  1588. The UI will propose to create new folders at the path given in the \fBpath\fP
  1589. attribute (used to be \fBdefaultFolderPath\fP under \fBoptions\fP). It also
  1590. applies to folders automatically accepted from a remote device.
  1591. .sp
  1592. Even sharing with other remote devices can be done in the template by
  1593. including the appropriate \fI\%folder.device\fP element underneath.
  1594. .UNINDENT
  1595. .INDENT 0.0
  1596. .TP
  1597. .B ignores
  1598. New in version 1.19.0.
  1599. .sp
  1600. Template for the \fI\%ignore patterns\fP applied to new
  1601. folders. These are copied to the \fB\&.stignore\fP file when a folder is
  1602. automatically accepted from a remote device. The GUI uses them to pre\-fill
  1603. the respective field when adding a new folder as well. In XML, each pattern
  1604. line is represented as by a \fB<line>\fP element.
  1605. .UNINDENT
  1606. .SS Listen Addresses
  1607. .sp
  1608. The following address types are accepted in sync protocol listen addresses.
  1609. If you want Syncthing to listen on multiple addresses, you can either: add
  1610. multiple \fB<listenAddress>\fP tags in the configuration file or enter several
  1611. addresses separated by commas in the GUI.
  1612. .INDENT 0.0
  1613. .TP
  1614. .B Default listen addresses (\fBdefault\fP)
  1615. This is equivalent to \fBtcp://0.0.0.0:22000\fP, \fBquic://0.0.0.0:22000\fP
  1616. and \fBdynamic+https://relays.syncthing.net/endpoint\fP\&.
  1617. .TP
  1618. .B TCP wildcard and port (\fBtcp://0.0.0.0:22000\fP, \fBtcp://:22000\fP)
  1619. These are equivalent and will result in Syncthing listening on all
  1620. interfaces, IPv4 and IPv6, on the specified port.
  1621. .TP
  1622. .B TCP IPv4 wildcard and port (\fBtcp4://0.0.0.0:22000\fP, \fBtcp4://:22000\fP)
  1623. These are equivalent and will result in Syncthing listening on all
  1624. interfaces via IPv4 only.
  1625. .TP
  1626. .B TCP IPv4 address and port (\fBtcp4://192.0.2.1:22000\fP)
  1627. This results in Syncthing listening on the specified address and port, IPv4
  1628. only.
  1629. .TP
  1630. .B TCP IPv6 wildcard and port (\fBtcp6://[::]:22000\fP, \fBtcp6://:22000\fP)
  1631. These are equivalent and will result in Syncthing listening on all
  1632. interfaces via IPv6 only.
  1633. .TP
  1634. .B TCP IPv6 address and port (\fBtcp6://[2001:db8::42]:22000\fP)
  1635. This results in Syncthing listening on the specified address and port, IPv6
  1636. only.
  1637. .TP
  1638. .B QUIC address and port (e.g. \fBquic://0.0.0.0:22000\fP)
  1639. Syntax is the same as for TCP, also \fBquic4\fP and \fBquic6\fP can be used.
  1640. .TP
  1641. .B Static relay address (\fBrelay://192.0.2.42:22067?id=abcd123...\fP)
  1642. Syncthing will connect to and listen for incoming connections via the
  1643. specified relay address.
  1644. .INDENT 7.0
  1645. .INDENT 3.5
  1646. .SS Todo
  1647. .sp
  1648. Document available URL parameters.
  1649. .UNINDENT
  1650. .UNINDENT
  1651. .TP
  1652. .B Dynamic relay pool (\fBdynamic+https://192.0.2.42/relays\fP)
  1653. Syncthing will fetch the specified HTTPS URL, parse it for a JSON payload
  1654. describing relays, select a relay from the available ones and listen via
  1655. that as if specified as a static relay above.
  1656. .INDENT 7.0
  1657. .INDENT 3.5
  1658. .SS Todo
  1659. .sp
  1660. Document available URL parameters.
  1661. .UNINDENT
  1662. .UNINDENT
  1663. .UNINDENT
  1664. .SH SYNCING CONFIGURATION FILES
  1665. .sp
  1666. Syncing configuration files between devices (such that multiple devices are
  1667. using the same configuration files) can cause issues. This is easy to do
  1668. accidentally if you sync your home folder between devices. A common symptom
  1669. of syncing configuration files is two devices ending up with the same Device ID.
  1670. .sp
  1671. If you want to use Syncthing to backup your configuration files, it is recommended
  1672. that the files you are backing up are in a \fI\%Send Only Folder\fP to prevent other
  1673. devices from overwriting the per device configuration. The folder on the remote
  1674. device(s) should not be used as configuration for the remote devices.
  1675. .sp
  1676. If you’d like to sync your home folder in non\-send only mode, you may add the
  1677. folder that stores the configuration files to the \fI\%ignore list\fP\&.
  1678. If you’d also like to backup your configuration files, add another folder in
  1679. send only mode for just the configuration folder.
  1680. .SH AUTHOR
  1681. The Syncthing Authors
  1682. .SH COPYRIGHT
  1683. 2014-2019, The Syncthing Authors
  1684. .\" Generated by docutils manpage writer.
  1685. .