mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: S3 endpoint broke bucket creation in non-default region
This commit is contained in:
@@ -193,10 +193,11 @@ class S3Helper
|
||||
def self.s3_options(obj)
|
||||
opts = {
|
||||
region: obj.s3_region,
|
||||
endpoint: SiteSetting.s3_endpoint,
|
||||
force_path_style: SiteSetting.s3_force_path_style
|
||||
}
|
||||
|
||||
opts[:endpoint] = SiteSetting.s3_endpoint if SiteSetting.s3_endpoint.present?
|
||||
|
||||
unless obj.s3_use_iam_profile
|
||||
opts[:access_key_id] = obj.s3_access_key_id
|
||||
opts[:secret_access_key] = obj.s3_secret_access_key
|
||||
|
||||
Reference in New Issue
Block a user