Documentation / Reference

This page is generated from the program and its code when the documentation is built. It is not edited by hand.

Configuration file

config.toml holds the start-up options of a process that hosts an engine: the daemon, the one-off engine of a command, and the desktop app. It is read once at start and never written by easysync. It contains top-level keys only, no secrets and no run-time settings. A missing file is not an error. For a key that has a command-line option or an environment variable, the option wins, then the variable, then the file, then the built-in default. The place of the file for each system is in Install.

Keys of config.toml:

KeyTypeDefaultWhere it countsOverridden byMeaning
key_storestring, "os" or "file"the OS key storeLinux only (ignored with a warning on Windows and macOS)--keystore, EASYSYNC_KEY_STOREWhere the identity and state keys live. "file" selects the headless key file keys.cbor.
listenstring, a socket address ip:port0.0.0.0 on the preferred port, or any free portall that read config.toml--listenThe QUIC listening address. An address from the file is as explicit as the option: if its port is taken, the start fails.
discoverybooltrueall that read config.toml--no-discoveryfalse switches mDNS discovery off.
clipboardbooltruethe daemon--no-clipboardfalse stops the daemon from hosting an OS clipboard backend.

An example file with every key:

key_store = "file"
listen = "0.0.0.0:47017"
discovery = false
clipboard = false

Run-time settings #

These settings are not keys of the file. They are stored in the state database of the device, change with easysync config set and are read with easysync config get. A key of that name in config.toml is refused.

SettingTypeDefaultRangeMeaning
clipboard_syncboolonThe master switch of clipboard sync.
max_clipboard_sizesize256 KiB4096 to 1048448 bytesThe largest clipboard text this device accepts and advertises.
show_source_deviceboolonWhether the notification of a received clipboard text names the sending device.
deliver_latest_on_reconnectbooloffWhether the latest clipboard text is delivered to a device when it reconnects.
incoming_dirabsolute path<state dir>/incomingan existing directory in which the engine can create and remove a fileWhere accepted files are saved.
min_free_space_marginsize1 GiB0 to 2^50 bytesThe free space that must remain after a file is accepted.