From ec8b515009bb0f4a774fb4eeee2f019262b29cc6 Mon Sep 17 00:00:00 2001 From: huming Date: Thu, 1 Oct 2015 10:32:14 +0800 Subject: [PATCH] add cn support for s3 --- lib/fog/aws/storage.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/fog/aws/storage.rb b/lib/fog/aws/storage.rb index f7e9c3d5d..90982f395 100644 --- a/lib/fog/aws/storage.rb +++ b/lib/fog/aws/storage.rb @@ -205,6 +205,8 @@ module Fog case region.to_s when DEFAULT_REGION, '' 's3.amazonaws.com' + when 'cn-north-1' + 's3.cn-north-1.amazonaws.com.cn' else "s3-#{region}.amazonaws.com" end