DEV: Align S3 transfer acceleration global settings (#24302)

Followup to fe05fdae244d98e2e569f6553b6f6a04bc09c74d

For consistency with other S3 settings, make the global setting
the same name as the site setting and use SiteSetting.Upload
too so it reads from the correct place.
This commit is contained in:
Martin Brennan
2023-11-10 09:50:23 +10:00
committed by GitHub
parent 36ab7ff2a9
commit 731dffdf92
4 changed files with 12 additions and 11 deletions

View File

@ -25,7 +25,7 @@ module FileStore
S3Helper.new(
s3_bucket,
Rails.configuration.multisite ? multisite_tombstone_prefix : TOMBSTONE_PREFIX,
use_accelerate_endpoint: SiteSetting.enable_s3_transfer_acceleration,
use_accelerate_endpoint: SiteSetting.Upload.enable_s3_transfer_acceleration,
)
end