syncthing-config.5 54 KB

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