Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2013-12-11 17:54:26 +0400
committerJacob Vosmaer <contact@jacobvosmaer.nl>2013-12-11 20:40:11 +0400
commit3e57d88e578f958a6921f893725e8dd767393901 (patch)
tree906fe7295b4543b4ce913d33e83fe81e8992e16e /config
parent0456c666289d81cc2b34af72922346d073842588 (diff)
Expire fog links after 34 years
Diffstat (limited to 'config')
-rw-r--r--config/initializers/carrierwave.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/initializers/carrierwave.rb b/config/initializers/carrierwave.rb
index 45bc68f3220..ef837d0d9ff 100644
--- a/config/initializers/carrierwave.rb
+++ b/config/initializers/carrierwave.rb
@@ -15,5 +15,7 @@ if File.exists?(aws_file)
config.fog_directory = AWS_CONFIG['bucket'] # required
config.fog_public = false # optional, defaults to true
config.fog_attributes = {'Cache-Control'=>'max-age=315576000'} # optional, defaults to {}
+ config.fog_authenticated_url_expiration = 1 << 30 # optional time (in seconds) that authenticated urls will be valid.
+ # when fog_public is false and provider is AWS or Google, defaults to 600
end
end