diff options
author | zhitomirskiyi <ilya@joindiaspora.com> | 2011-01-12 23:04:14 +0300 |
---|---|---|
committer | zhitomirskiyi <ilya@joindiaspora.com> | 2011-01-18 02:56:06 +0300 |
commit | 7ef89acf8104626feae8be805b950242d98d3929 (patch) | |
tree | 0aaad03707b6b2e79ee85b8ce2ab5cef95cfdbae /chef | |
parent | 0f9dc4954a2228caed8ae871a13854f528f75382 (diff) |
added the redirect to the nginx conf
Diffstat (limited to 'chef')
-rw-r--r-- | chef/cookbooks/common/templates/default/nginx.conf.erb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chef/cookbooks/common/templates/default/nginx.conf.erb b/chef/cookbooks/common/templates/default/nginx.conf.erb index c06963b53..a8aa121ec 100644 --- a/chef/cookbooks/common/templates/default/nginx.conf.erb +++ b/chef/cookbooks/common/templates/default/nginx.conf.erb @@ -108,13 +108,14 @@ http { proxy_pass http://thin_cluster; break; } + + rewrite ^/uploads/images/(.*)$ https://joindiaspora.s3.amazonaws.com/uploads/images/$1 permanent; } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } - } } |