syncthing-config.5 58 KB

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