syncthing-config.5 58 KB

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