Repository navigation
Expand file tree
/
Copy pathconfig.sample.toml
More file actions
98 lines (88 loc) · 2.34 KB
/
Copy pathconfig.sample.toml
File metadata and controls
98 lines (88 loc) · 2.34 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
[http]
address = "127.0.0.1:8080"
read-header-timeout = "10s"
read-timeout = "1h"
write-timeout = "1h"
idle-timeout = "2m"
shutdown-timeout = "10s"
# Trust forwarding headers only from these proxy IP addresses or CIDRs.
trusted-proxies = []
[database]
schema = "teldrive"
url = "postgres://postgres:postgres@127.0.0.1:5432/teldrive?sslmode=disable"
application-name = "teldrive-v2"
max-connections = 25
min-connections = 2
max-connection-idle = "5m"
max-connection-life = "30m"
health-check-interval = "30s"
connect-timeout = "10s"
auto-migrate-legacy = true
[telegram]
# Use "filesystem" for local/offline testing. Remote mode requires app-id/app-hash.
backend = "remote"
local-root = "./var/local-telegram"
app-id = 2496
app-hash = "8da85b0d5bfe62527e5b244c209159c3"
device-model = "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0"
system-version = "Win32"
app-version = "6.1.4 K"
language-code = "en"
system-language-code = "en-US"
language-pack = "webk"
dial-timeout = "10s"
reconnect-timeout = "5m"
max-retries = 10
rate-limit = true
rate-interval = "50ms"
rate-burst = 10
proxy = ""
upload-threads = 8
download-bots = 0
# Keep this disabled to preserve request-scoped Telegram clients.
download-client-pool = false
download-read-buffers = 32
download-read-parallel = 4
randomize-part-names = true
auto-channel-create = true
bot-rotation-backend = "memory"
channel-part-limit = 500000
channel-name-prefix = "teldrive"
[telegram.mtproxy]
address = ""
secret = ""
[encryption]
active-key-version = 0
# keys may also be a TOML table, for example: keys = { 1 = "base64-key" }
keys = ""
[security]
signing-key = ""
data-key = ""
issuer = "teldrive-v2"
# Empty permits every Telegram username. Usernames are case-insensitive and may include @.
allowed-users = []
access-token-ttl = "15m"
refresh-token-ttl = "720h"
login-flow-ttl = "10m"
[uploads]
session-ttl = "168h"
# Disable to skip automatic BLAKE3 hashing during uploads. Client-supplied checksums still require verification.
hashing-enabled = true
local-import-roots = []
[cache.memory]
size = "5MB"
[events]
batch-size = 100
max-connections-per-user = 5
heartbeat = "20s"
write-timeout = "10s"
ticket-ttl = "2m"
retention = "168h"
cleanup-interval = "1h"
connect-timeout = "10s"
ping-interval = "5s"
reconnect-min = "100ms"
reconnect-max = "30s"
[logging]
log-level = "info"
log-format = "json"