Commit 7cb75aeb4612553f24237e79d459390c71470e0b

Authored by Jacob Vosmaer
1 parent 3e57d88e

Reduce Fog expiration period to 17 years

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
config/initializers/carrierwave.rb
@@ -15,7 +15,7 @@ if File.exists?(aws_file) @@ -15,7 +15,7 @@ if File.exists?(aws_file)
15 config.fog_directory = AWS_CONFIG['bucket'] # required 15 config.fog_directory = AWS_CONFIG['bucket'] # required
16 config.fog_public = false # optional, defaults to true 16 config.fog_public = false # optional, defaults to true
17 config.fog_attributes = {'Cache-Control'=>'max-age=315576000'} # optional, defaults to {} 17 config.fog_attributes = {'Cache-Control'=>'max-age=315576000'} # optional, defaults to {}
18 - config.fog_authenticated_url_expiration = 1 << 30 # optional time (in seconds) that authenticated urls will be valid. 18 + config.fog_authenticated_url_expiration = 1 << 29 # optional time (in seconds) that authenticated urls will be valid.
19 # when fog_public is false and provider is AWS or Google, defaults to 600 19 # when fog_public is false and provider is AWS or Google, defaults to 600
20 end 20 end
21 end 21 end