syncthing-config.5 58 KB

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