-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver.example.json
More file actions
45 lines (41 loc) · 2.63 KB
/
Copy pathserver.example.json
File metadata and controls
45 lines (41 loc) · 2.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
// folder-transfer (ft) - SERVER config example.
//
// Run it with NO subcommand (the first argument is a folder OR this .json):
// ft.exe server.example.json (Windows)
// ./ft server.example.json (Linux)
// or just point ft at a folder directly:
// ft.exe C:\data
//
// On start, ft prints a FINGERPRINT and a ready-to-run command for the RECEIVER, e.g.:
// ft get --server <ip> --port 8722 --token <token> --fingerprint <hex>
// Run that command on the receiver; it then asks where to save (Enter = current folder).
//
// Paths: forward slashes "C:/path" OR doubled backslashes "C:\\path".
// Comments (// and /* */) are allowed. Same keys as the PowerShell ft-server.ps1 config.
"folders": [ // folders to share; each arrives under its own name on the receiver
"C:/Users/me/Documents", // <-- EDIT "me" to your username; add/remove folders as needed
"C:/Users/me/Downloads",
"C:/Users/me/Pictures"
],
"ignore": [ // skip these. name (no /) = any depth; * = within one name; ** = any depth; trailing / = folders only
"*.tmp", // temp files
"~$*", // Office lock files
"Thumbs.db", // Explorer thumbnail cache
"desktop.ini", // per-folder Explorer settings
"**/node_modules/", // node_modules at any depth
"**/cache/" // any "cache" folder at any depth
],
"streams": 4, // parallel connections - big speed-up on high-latency links (1 = classic single-stream)
"compress": true, // adaptive zstd compression on the fly (already-compressed types are skipped); false to disable
"compressMargin": 1.6, // adaptive level: keep compression >= this x the link speed (slow link -> compress harder)
"once": true, // exit after one successful transfer
"cutover": false, // true = two-phase mode for a LIVE database (implies once; forces streams:1)
"port": 8722, // TCP port
"allowIp": "", // only this client IP may connect (empty = any)
"serverHost": "", // address baked into the generated client (empty = auto-detect this PC's IPv4)
"clientOut": "", // where to write the client connection file (empty = .\download-scripts\...)
"idleSeconds": 600, // auto-close after N seconds with no client connected
"stallTimeout": 300, // abort a connected client silent for N seconds (raise to ~1200 for big files over WAN)
"noFirewall": false // true = do NOT open the firewall port (opening needs admin)
}