mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 11:23:36 +08:00
FEATURE: Add hidden setting to disable configuration of inventory bucket
This commit is contained in:
parent
12d2fe7ff6
commit
c351ffe580
|
@ -7,7 +7,9 @@ module Jobs
|
|||
class UpdateS3Inventory < ::Jobs::Base
|
||||
|
||||
def execute(args)
|
||||
return unless SiteSetting.enable_s3_inventory? && SiteSetting.Upload.enable_s3_uploads
|
||||
return unless SiteSetting.enable_s3_inventory? &&
|
||||
SiteSetting.Upload.enable_s3_uploads &&
|
||||
SiteSetting.s3_configure_inventory_policy
|
||||
|
||||
[:upload, :optimized].each do |type|
|
||||
s3_inventory = S3Inventory.new(Discourse.store.s3_helper, type)
|
||||
|
|
|
@ -1174,6 +1174,9 @@ files:
|
|||
default: true
|
||||
enable_s3_inventory:
|
||||
default: false
|
||||
s3_configure_inventory_policy:
|
||||
default: true
|
||||
hidden: true
|
||||
allow_profile_backgrounds:
|
||||
client: true
|
||||
default: true
|
||||
|
|
Loading…
Reference in New Issue
Block a user