syncthing-config.5 59 KB

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