Skip to content

Commit

Permalink
Set a default range request chunk size
Browse files Browse the repository at this point in the history
Fixes #485
  • Loading branch information
turt2live committed Oct 31, 2023
1 parent cb4884d commit 6b9bad6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions common/config/conf_domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ func NewDefaultDomainConfig() DomainRepoConfig {
AdminApiKind: "matrix",
},
Downloads: DownloadsConfig{
MaxSizeBytes: 104857600, // 100mb
FailureCacheMinutes: 15,
MaxSizeBytes: 104857600, // 100mb
FailureCacheMinutes: 15,
DefaultRangeChunkSizeBytes: 10485760, // 10mb
},
UrlPreviews: UrlPreviewsConfig{
Enabled: true,
Expand Down
5 changes: 3 additions & 2 deletions common/config/conf_main.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ func NewDefaultMainConfig() MainRepoConfig {
Admins: []string{},
Downloads: MainDownloadsConfig{
DownloadsConfig: DownloadsConfig{
MaxSizeBytes: 104857600, // 100mb
FailureCacheMinutes: 15,
MaxSizeBytes: 104857600, // 100mb
FailureCacheMinutes: 15,
DefaultRangeChunkSizeBytes: 10485760, // 10mb
},
NumWorkers: 10,
ExpireDays: 0,
Expand Down

0 comments on commit 6b9bad6

Please sign in to comment.