syncthing-config.5 58 KB

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