added the redirect to the nginx conf
This commit is contained in:
parent
0f9dc4954a
commit
7ef89acf81
2 changed files with 3 additions and 1 deletions
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
class ImageUploader < CarrierWave::Uploader::Base
|
||||
include CarrierWave::MiniMagick
|
||||
storage :s3
|
||||
|
||||
def store_dir
|
||||
"uploads/images"
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue