syncthing-config.5 55 KB

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