feat: add TUS settings to the command line (#5556)

This commit is contained in:
Henrique Dias
2025-11-16 14:13:58 +01:00
committed by GitHub
parent 5de4099cba
commit e24e1f1aba
3 changed files with 26 additions and 2 deletions

View File

@@ -86,6 +86,16 @@ override the options.`,
return err
}
tusChunkSize, err := flags.GetUint64("tus.chunkSize")
if err != nil {
return err
}
tusRetryCount, err := flags.GetUint16("tus.retryCount")
if err != nil {
return err
}
s := &settings.Settings{
Key: key,
Signup: signup,
@@ -102,6 +112,10 @@ override the options.`,
Theme: brandingTheme,
Files: brandingFiles,
},
Tus: settings.Tus{
ChunkSize: tusChunkSize,
RetryCount: tusRetryCount,
},
}
s.FileMode, err = getMode(flags, "file-mode")