Skip to content

Latest commit

 

History

History
95 lines (78 loc) · 2.46 KB

config.md

File metadata and controls

95 lines (78 loc) · 2.46 KB

configuration

Configuration is generated by default should be OK in the most of cases, however you might want to tune it.

All timeouts are specified in milliseconds

# settings peer connection
[bep]
blocks_max_requested = 16           # maximum concurrent block read requests to a peer
blocks_simultaneous_write = 16      # maximum concurrent block write requests to disk
connect_timeout = 5000
request_timeout = 60000
rx_buff_size = 16777216             # preallocated receive buffer size
rx_timeout = 300000
tx_buff_limit = 8388608             # preallocated transmit buffer size
tx_timeout = 90000

# database settings
[db]
upper_limit = 0x400000000   # maximum amount of database, in bytes
uncommited_threshold = 150  # how often flush db to disk, i.e. how much operations
                            # might be not committed. Affects disk performance

# dialer settings
[dialer]
enabled = true
redial_timeout = 300000     # how often try to redial to offline peers

# filesystem settings
[fs]
temporally_timeout = 86400000   # remove incomplete file after this amount of seconds
mru_size = 10                   # maximum amount of cached files


[global_discovery]
announce_url = 'https://discovery.syncthing.net/'
# this device certificate location
cert_file = '/home/b/.config/syncthing/cert.pem'
# the device_id of global discovery server
device_id = 'LYXKCHX-VI3NYZR-ALCJBHF-WMZYSPK-QG6QJA3-MPFYMSO-U56GTUK-NA2MIAW'
enabled = true
# this device key location
key_file = '/home/b/.config/syncthing/key.pem'
rx_buff_size = 32768
timeout = 4000

[local_discovery]
enabled = true
# how often send announcements in LAN, in milliseconds
frequency = 10000
port = 21026

# default log settings
[[log]]
name = 'default'
# possible values: trace, debug, info, warn, error, critical
level = 'trace'
# where do output logs
sinks = ['stdout', 'file:/tmp/log.txt']

[main]
# where folders are created by default
default_location = '/tmp/syncspirit'
# this device name
device_name = 'this-device-name'
timeout = 5000
# the amount cpu cores used for hashing
hasher_threads = 3

[relay]
enabled = true
# where pick the list of relay servers pool
discovery_url = 'https://relays.syncthing.net/endpoint'
rx_buff_size = 1048576

[upnp]
enabled = true
# do output of upnp requests
debug = false
discovery_attempts = 2
# external port for communication, opened on router
external_port = 22001
max_wait = 1
rx_buff_size = 65536

# actor specific log (for net.db in the case)
[[log]]
name = 'net.db'
level = 'debug'