* carrierwave to use public
This commit is contained in:
parent
7ea89dd38a
commit
e39f61fa35
|
|
@ -15,6 +15,7 @@ class ArtifactsController < ApiController
|
|||
render :json => result, :status => :ok
|
||||
end
|
||||
|
||||
|
||||
def versioncheck
|
||||
|
||||
# the reported client version
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ CarrierWave.configure do |config|
|
|||
:aws_secret_access_key => SampleApp::Application.config.aws_secret_access_key,
|
||||
:region => SampleApp::Application.config.aws_region,
|
||||
}
|
||||
config.fog_directory = SampleApp::Application.config.aws_bucket # required
|
||||
config.fog_directory = SampleApp::Application.config.aws_bucket_public # required
|
||||
config.fog_public = true # optional, defaults to true
|
||||
config.fog_attributes = {'Cache-Control'=>"max-age=#{SampleApp::Application.config.aws_cache}"} # optional, defaults to {}
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue