teldrive/config.sample.toml

54 lines
950 B
TOML
Raw Normal View History

2024-02-13 00:02:55 +08:00
[db]
data-source = ""
2024-06-04 16:46:03 +08:00
prepare-stmt = true
2024-02-13 00:02:55 +08:00
log-level = 1
[db.pool]
2024-06-04 16:46:03 +08:00
enable = true
max-idle-connections = 25
2024-02-13 00:02:55 +08:00
max-lifetime = "10m"
max-open-connections = 25
2024-02-13 00:02:55 +08:00
[cronjobs]
enable = true
2024-02-13 00:02:55 +08:00
[jwt]
allowed-users = [""]
secret = ""
2024-02-20 00:02:25 +08:00
session-time = "30d"
2024-02-13 00:02:55 +08:00
[log]
development = true
2024-02-13 00:02:55 +08:00
level = -1
[server]
graceful-shutdown = "15s"
2024-02-14 21:07:22 +08:00
port = 8080
2024-07-10 02:11:05 +08:00
read-timeout = "1h"
write-timeout = "1h"
2024-02-13 00:02:55 +08:00
[tg]
app-hash = ""
app-id = 0
2024-02-13 19:21:38 +08:00
app-version = "4.6.3 K"
2024-02-13 00:02:55 +08:00
bg-bots-limit = 5
device-model = "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0"
disable-stream-bots = false
lang-code = "en"
2024-02-13 19:21:38 +08:00
lang-pack = "webk"
2024-02-13 00:02:55 +08:00
rate = 100
rate-burst = 5
rate-limit = true
session-file = ""
2024-02-13 00:02:55 +08:00
system-lang-code = "en-US"
system-version = "Win32"
2024-05-15 19:56:19 +08:00
proxy= "http://127.0.0.1:8080"
2024-02-13 00:02:55 +08:00
[tg.uploads]
encryption-key = ""
2024-02-20 00:02:25 +08:00
retention = "7d"
threads = 8
[tg.stream]
2024-06-22 20:29:59 +08:00
multi-threads = 0
2024-07-10 02:11:05 +08:00
buffers = 8