syncthing-config.5 55 KB

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