syncthing-config.5 54 KB

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