mirror of
https://github.com/tgdrive/teldrive.git
synced 2024-11-10 09:02:52 +08:00
53 lines
950 B
TOML
53 lines
950 B
TOML
[db]
|
|
data-source = ""
|
|
prepare-stmt = true
|
|
log-level = 1
|
|
[db.pool]
|
|
enable = true
|
|
max-idle-connections = 25
|
|
max-lifetime = "10m"
|
|
max-open-connections = 25
|
|
|
|
[cronjobs]
|
|
enable = true
|
|
|
|
[jwt]
|
|
allowed-users = [""]
|
|
secret = ""
|
|
session-time = "30d"
|
|
|
|
[log]
|
|
development = true
|
|
level = -1
|
|
|
|
[server]
|
|
graceful-shutdown = "15s"
|
|
port = 8080
|
|
read-timeout = "1h"
|
|
write-timeout = "1h"
|
|
|
|
[tg]
|
|
app-hash = ""
|
|
app-id = 0
|
|
app-version = "4.6.3 K"
|
|
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"
|
|
lang-pack = "webk"
|
|
rate = 100
|
|
rate-burst = 5
|
|
rate-limit = true
|
|
session-file = ""
|
|
system-lang-code = "en-US"
|
|
system-version = "Win32"
|
|
proxy= "http://127.0.0.1:8080"
|
|
|
|
[tg.uploads]
|
|
encryption-key = ""
|
|
retention = "7d"
|
|
threads = 8
|
|
[tg.stream]
|
|
multi-threads = 0
|
|
buffers = 8
|
|
|