summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authordumpfmprod <dumpfmprod@ubuntu.(none)>2010-08-06 03:09:21 -0400
committerdumpfmprod <dumpfmprod@ubuntu.(none)>2010-08-06 03:09:21 -0400
commite23a925411e08e31c6d53cb489ce848833b01e14 (patch)
tree5105be13209c1cc013eb94825ec22ed7fe12a8fc /conf
parent691101ff57140b38f5aaed6454c28f36b0d8c4e2 (diff)
Added amazon s3 routing
Diffstat (limited to 'conf')
-rw-r--r--conf/nginx.conf7
1 files changed, 6 insertions, 1 deletions
diff --git a/conf/nginx.conf b/conf/nginx.conf
index 3e6cbe5..44967bb 100644
--- a/conf/nginx.conf
+++ b/conf/nginx.conf
@@ -32,8 +32,13 @@ http {
client_max_body_size 15m;
location ~* /(avatars|images)/ {
+ if (!-f $request_filename) {
+ rewrite ^(.*)$ http://dumpfm.s3.amazonaws.com$1 permanent;
+ break;
+ }
+
root /home/dumpfmprod/prod;
- expires 30d;
+ expires 30d;
}
location ~* /static/ {