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

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

No files matched your search

+14
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")