diff options
| -rw-r--r-- | conf/nginx.conf | 7 |
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/ { |
