mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 11:28:59 +00:00
ffe7a2fcd7
This adds a config to enable debug functions on the API server, which is by default disabled. When enabled, the /rest/debug things become available and become available without requiring a CSRF token (although authentication is required if configured). We also add a new endpoint /rest/debug/cpuprof?duration=15s (with the duration being configurable, defaulting to 30s). This runs a CPU profile for the duration and returns it as a file. It sets headers so that a browser will save the file with an informative name. The same is done for heap profiles, /rest/debug/heapprof, which does not take any parameters. The purpose of this is that any user can enable debugging under advanced, then point their browser to the endpoint above and get a file that contains a CPU or heap profile we can use, with the filename telling us what version and architecture the profile is from. On the command line, this becomes curl -O -J http://localhost:8082/rest/debug/cpuprof?duration=5s curl: Saved to filename 'syncthing-cpu-darwin-amd64-v0.14.3+4-g935bcc0-110307.pprof' GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3467
99 lines
5.1 KiB
XML
99 lines
5.1 KiB
XML
<configuration version="15">
|
|
<folder id="default" label="" path="s1/" type="readwrite" rescanIntervalS="10" ignorePerms="false" autoNormalize="true">
|
|
<device id="I6KAH76-66SLLLB-5PFXSOA-UFJCDZC-YAOMLEK-CP2GB32-BV5RQST-3PSROAU"></device>
|
|
<device id="MRIW7OK-NETT3M4-N6SBWME-N25O76W-YJKVXPH-FUMQJ3S-P57B74J-GBITBAC"></device>
|
|
<device id="373HSRP-QLPNLIE-JYKZVQF-P4PKZ63-R2ZE6K3-YD442U2-JHBGBQG-WWXAHAU"></device>
|
|
<device id="7PBCTLL-JJRYBSA-MOWZRKL-MSDMN4N-4US4OMX-SYEXUS4-HSBGNRY-CZXRXAT"></device>
|
|
<minDiskFreePct>1</minDiskFreePct>
|
|
<versioning></versioning>
|
|
<copiers>1</copiers>
|
|
<pullers>16</pullers>
|
|
<hashers>0</hashers>
|
|
<order>random</order>
|
|
<ignoreDelete>false</ignoreDelete>
|
|
<scanProgressIntervalS>0</scanProgressIntervalS>
|
|
<pullerSleepS>0</pullerSleepS>
|
|
<pullerPauseS>0</pullerPauseS>
|
|
<maxConflicts>-1</maxConflicts>
|
|
<disableSparseFiles>false</disableSparseFiles>
|
|
<disableTempIndexes>false</disableTempIndexes>
|
|
</folder>
|
|
<folder id="¯\_(ツ)_/¯ Räksmörgås 动作 Адрес" label="" path="s12-1/" type="readwrite" rescanIntervalS="10" ignorePerms="false" autoNormalize="true">
|
|
<device id="I6KAH76-66SLLLB-5PFXSOA-UFJCDZC-YAOMLEK-CP2GB32-BV5RQST-3PSROAU"></device>
|
|
<device id="MRIW7OK-NETT3M4-N6SBWME-N25O76W-YJKVXPH-FUMQJ3S-P57B74J-GBITBAC"></device>
|
|
<minDiskFreePct>1</minDiskFreePct>
|
|
<versioning></versioning>
|
|
<copiers>1</copiers>
|
|
<pullers>16</pullers>
|
|
<hashers>0</hashers>
|
|
<order>random</order>
|
|
<ignoreDelete>false</ignoreDelete>
|
|
<scanProgressIntervalS>0</scanProgressIntervalS>
|
|
<pullerSleepS>0</pullerSleepS>
|
|
<pullerPauseS>0</pullerPauseS>
|
|
<maxConflicts>-1</maxConflicts>
|
|
<disableSparseFiles>false</disableSparseFiles>
|
|
<disableTempIndexes>false</disableTempIndexes>
|
|
</folder>
|
|
<device id="EJHMPAQ-OGCVORE-ISB4IS3-SYYVJXF-TKJGLTU-66DIQPF-GJ5D2GX-GQ3OWQK" name="s4" compression="metadata" introducer="false">
|
|
<address>tcp://127.0.0.1:22004</address>
|
|
</device>
|
|
<device id="I6KAH76-66SLLLB-5PFXSOA-UFJCDZC-YAOMLEK-CP2GB32-BV5RQST-3PSROAU" name="s1" compression="metadata" introducer="false">
|
|
<address>tcp://127.0.0.1:22001</address>
|
|
</device>
|
|
<device id="MRIW7OK-NETT3M4-N6SBWME-N25O76W-YJKVXPH-FUMQJ3S-P57B74J-GBITBAC" name="s2" compression="metadata" introducer="false">
|
|
<address>tcp://127.0.0.1:22002</address>
|
|
</device>
|
|
<device id="373HSRP-QLPNLIE-JYKZVQF-P4PKZ63-R2ZE6K3-YD442U2-JHBGBQG-WWXAHAU" name="s3" compression="metadata" introducer="false">
|
|
<address>tcp://127.0.0.1:22003</address>
|
|
</device>
|
|
<device id="7PBCTLL-JJRYBSA-MOWZRKL-MSDMN4N-4US4OMX-SYEXUS4-HSBGNRY-CZXRXAT" name="s4" compression="metadata" introducer="false">
|
|
<address>tcp://127.0.0.1:22004</address>
|
|
</device>
|
|
<gui enabled="true" tls="false" debugging="true">
|
|
<address>127.0.0.1:8081</address>
|
|
<user>testuser</user>
|
|
<password>$2a$10$7tKL5uvLDGn5s2VLPM2yWOK/II45az0mTel8hxAUJDRQN1Tk2QYwu</password>
|
|
<apikey>abc123</apikey>
|
|
<theme>default</theme>
|
|
</gui>
|
|
<options>
|
|
<listenAddress>dynamic+https://relays.syncthing.net/endpoint</listenAddress>
|
|
<listenAddress>tcp://127.0.0.1:22001</listenAddress>
|
|
<globalAnnounceServer>default</globalAnnounceServer>
|
|
<globalAnnounceEnabled>false</globalAnnounceEnabled>
|
|
<localAnnounceEnabled>true</localAnnounceEnabled>
|
|
<localAnnouncePort>21027</localAnnouncePort>
|
|
<localAnnounceMCAddr>[ff12::8384]:21027</localAnnounceMCAddr>
|
|
<maxSendKbps>0</maxSendKbps>
|
|
<maxRecvKbps>0</maxRecvKbps>
|
|
<reconnectionIntervalS>5</reconnectionIntervalS>
|
|
<relaysEnabled>false</relaysEnabled>
|
|
<relayReconnectIntervalM>10</relayReconnectIntervalM>
|
|
<startBrowser>false</startBrowser>
|
|
<natEnabled>true</natEnabled>
|
|
<natLeaseMinutes>0</natLeaseMinutes>
|
|
<natRenewalMinutes>30</natRenewalMinutes>
|
|
<natTimeoutSeconds>10</natTimeoutSeconds>
|
|
<urAccepted>-1</urAccepted>
|
|
<urUniqueID></urUniqueID>
|
|
<urURL>https://data.syncthing.net/newdata</urURL>
|
|
<urPostInsecurely>false</urPostInsecurely>
|
|
<urInitialDelayS>1800</urInitialDelayS>
|
|
<restartOnWakeup>true</restartOnWakeup>
|
|
<autoUpgradeIntervalH>12</autoUpgradeIntervalH>
|
|
<keepTemporariesH>24</keepTemporariesH>
|
|
<cacheIgnoredFiles>false</cacheIgnoredFiles>
|
|
<progressUpdateIntervalS>5</progressUpdateIntervalS>
|
|
<symlinksEnabled>true</symlinksEnabled>
|
|
<limitBandwidthInLan>false</limitBandwidthInLan>
|
|
<minHomeDiskFreePct>1</minHomeDiskFreePct>
|
|
<releasesURL>https://upgrades.syncthing.net/meta.json</releasesURL>
|
|
<overwriteRemoteDeviceNamesOnConnect>false</overwriteRemoteDeviceNamesOnConnect>
|
|
<tempIndexMinBlocks>10</tempIndexMinBlocks>
|
|
<upnpEnabled>true</upnpEnabled>
|
|
<upnpRenewalMinutes>30</upnpRenewalMinutes>
|
|
<upnpTimeoutSeconds>10</upnpTimeoutSeconds>
|
|
</options>
|
|
</configuration>
|