set LAZY_STREAM_BOTS default to false

This commit is contained in:
divyam234 2023-11-08 01:22:26 +05:30
parent cf273b53df
commit ceafaf8e1f
2 changed files with 2 additions and 2 deletions

View file

@ -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).

View file

@ -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