-
Notifications
You must be signed in to change notification settings - Fork 409
Expand file tree
/
Copy pathconfig.sample.toml
More file actions
125 lines (105 loc) · 2.18 KB
/
config.sample.toml
File metadata and controls
125 lines (105 loc) · 2.18 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
[cache]
max-size = 10485760
[db]
data-source = ""
prepare-stmt = true
[db.pool]
enable = true
max-idle-connections = 25
max-lifetime = "10m"
max-open-connections = 25
[events]
db-buffer-size = 1000
db-workers = 10
deduplication-ttl = "5s"
poll-interval = "10s"
[jobs]
[jobs.sync-run]
max-attempts = 8
[jobs.sync-transfer]
max-attempts = 2
timeout = "3h"
[jwt]
allowed-users = []
secret = ""
session-time = "30d"
[log]
file = ""
level = "info"
time-format = "2006-01-02 15:04:05"
[log.db]
level = "error"
log-sql = false
slow-threshold = "1s"
[log.http]
enabled = true
log-queries = false
log-request-body-size = true
log-response-size = true
log-user-agent = true
max-query-length = 100
sanitize-queries = true
skip-paths = ["/health", "/metrics"]
[log.tg]
enabled = false
level = "warn"
[queue]
default-workers = 50
upload-workers = 4
[redis]
addr = ""
conn-max-idle-time = "5m"
conn-max-lifetime = "1h"
max-idle-conns = 10
min-idle-conns = 5
password = ""
pool-size = 10
[server]
enable-pprof = false
graceful-shutdown = "10s"
port = 8080
read-timeout = "1h"
write-timeout = "1h"
[tg]
app-hash = "8da85b0d5bfe62527e5b244c209159c3"
app-id = 2496
app-version = "6.1.4 K"
auto-channel-create = true
channel-limit = 500000
device-model = "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0"
dial-timeout = "10s"
enable-logging = false
lang-code = "en"
lang-pack = "webk"
ntp = false
ntp-server = "pool.ntp.org"
pool-size = 8
proxy = ""
rate = 100
rate-burst = 5
rate-limit = true
reconnect-timeout = "5m"
session-instance = "teldrive"
system-lang-code = "en-US"
system-version = "Win32"
[tg.mtproxy]
addr = ""
secret = ""
[tg.session]
key = "session"
type = "postgres"
[tg.session.bolt]
no-grow-sync = false
path = ""
timeout = "1s"
[tg.stream]
bots-limit = 0
buffers = 8
chunk-timeout = "30s"
concurrency = 1
[tg.uploads]
chunk-naming = "random"
encryption-key = ""
max-retries = 10
retention = "7d"
threads = 8