diff --git a/app/models/swf_asset.rb b/app/models/swf_asset.rb index 986956c5..f335ea5a 100644 --- a/app/models/swf_asset.rb +++ b/app/models/swf_asset.rb @@ -93,7 +93,7 @@ class SwfAsset < ActiveRecord::Base host = ASSET_HOSTS[:swf_asset_images] size_key = size.join('x') - "http://#{host}/#{s3_path}/#{size_key}.png?#{image_version}" + "//#{host}/#{s3_path}/#{size_key}.png?#{image_version}" end def images diff --git a/config/initializers/asset_hosts.rb b/config/initializers/asset_hosts.rb index 98910987..0486b260 100644 --- a/config/initializers/asset_hosts.rb +++ b/config/initializers/asset_hosts.rb @@ -1,3 +1,3 @@ ASSET_HOSTS = { - :swf_asset_images => 'swfimages.impress.openneo.net' + :swf_asset_images => 'impress-asset-images.s3.amazonaws.com' }