Skip to content

Commit

Permalink
Merge pull request #487 from turt2live/travis/fix-range
Browse files Browse the repository at this point in the history
Set a default range request chunk size
  • Loading branch information
turt2live authored Oct 31, 2023
2 parents 0c8b8f1 + 6b9bad6 commit 28e944b
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 28e944b

Please sign in to comment.