mirror of
https://github.com/tgdrive/teldrive.git
synced 2024-11-10 09:02:52 +08:00
set LAZY_STREAM_BOTS default to false
This commit is contained in:
parent
cf273b53df
commit
ceafaf8e1f
2 changed files with 2 additions and 2 deletions
|
@ -129,7 +129,7 @@ In addition to the mandatory variables, you can also set the following optional
|
|||
|
||||
- `COOKIE_SAME_SITE` : Only needed when frontend is on other domain (Default true).
|
||||
|
||||
- `LAZY_STREAM_BOTS` : If set to true start Bot session and close immediately when stream or download request is over otherwise run bots forever till server stops (Default true).
|
||||
- `LAZY_STREAM_BOTS` : If set to true start Bot session and close immediately when stream or download request is over otherwise run bots forever till server stops (Default false).
|
||||
|
||||
- `BG_BOTS_LIMIT` : If LAZY_STREAM_BOTS is set to false it start atmost BG_BOTS_LIMIT no of bots in background to prevent connection recreation on every request (Default 5).
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ type Config struct {
|
|||
TgClientLangPack string `envconfig:"TG_CLIENT_LANG_PACK" default:"webk"`
|
||||
RunMigrations bool `envconfig:"RUN_MIGRATIONS" default:"true"`
|
||||
Port int `envconfig:"PORT" default:"8080"`
|
||||
LazyStreamBots bool `envconfig:"LAZY_STREAM_BOTS" default:"true"`
|
||||
LazyStreamBots bool `envconfig:"LAZY_STREAM_BOTS" default:"false"`
|
||||
BgBotsLimit int `envconfig:"BG_BOTS_LIMIT" default:"5"`
|
||||
UploadRetention int `envconfig:"UPLOAD_RETENTION" default:"15"`
|
||||
ExecDir string
|
||||
|
|
Loading…
Reference in a new issue