forked from tgdrive/teldrive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.sample.toml
More file actions
57 lines (48 loc) · 801 Bytes
/
config.sample.toml
File metadata and controls
57 lines (48 loc) · 801 Bytes
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
[cache]
max-size = 10485760
redis-addr = ''
redis-pass = ''
[cronjobs]
clean-files-interval = '1h'
clean-uploads-interval = '12h'
enable = true
folder-size-interval = '2h'
[db]
log-level = 'info'
prepare-stmt = true
[db.pool]
enable = true
max-idle-connections = 25
max-lifetime = '10m'
max-open-connections = 25
[jwt]
session-time = '30d'
secret = ''
allowed-users = []
[log]
level = 'info'
file = ''
[server]
graceful-shutdown = '10s'
port = 8080
read-timeout = '1h'
write-timeout = '1h'
[tg]
pool-size = 8
rate = 100
rate-burst = 5
ntp = false
disable-stream-bots = false
storage-file = ''
proxy = ''
rate-limit = true
reconnect-timeout = '5m'
[tg.stream]
buffers = 8
chunk-timeout = '20s'
[tg.uploads]
multi-threads = 0
encryption-key = ''
max-retries = 10
retention = '7d'
threads = '8'