2020-05-02 00:43:46 +02:00
|
|
|
CarrierWave.configure do |config|
|
|
|
|
config.fog_credentials = {
|
|
|
|
:provider => "Local",
|
|
|
|
:local_root => "#{Rails.root}/public",
|
|
|
|
}
|
2022-12-21 11:43:32 +01:00
|
|
|
config.fog_directory = "/"
|
2020-05-02 00:43:46 +02:00
|
|
|
|
|
|
|
unless APP_CONFIG["fog"].nil?
|
2020-05-06 17:13:44 +02:00
|
|
|
config.fog_credentials = APP_CONFIG.dig("fog", "credentials") unless APP_CONFIG.dig("fog", "credentials").nil?
|
|
|
|
config.fog_directory = APP_CONFIG.dig("fog", "directory") unless APP_CONFIG.dig("fog", "directory").nil?
|
2020-05-02 00:43:46 +02:00
|
|
|
end
|
2020-05-17 20:58:27 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
CarrierWave::Backgrounder.configure do |c|
|
|
|
|
c.backend :sidekiq, queue: :carrierwave
|
|
|
|
end
|