title: Is it possible to configure Paperclip to produce HTTPS urls for S3?
body: <p>I'm using Paperclip to manage user-uploaded images on a site that is served entirely under HTTPS.  In order to avoid the silly security warnings on IE7/IE8, I need to also serve these images over SSL.  I typically render my images using something like the following:</p>
  
  <pre><code>&lt;%= image_tag @product.image.url(:large) %&gt;
  </code></pre>
  
  <p>where</p>
  
  <pre><code>class Product &lt; ActiveRecord::Base
  
    has_attached_file :image,
                    :styles =&gt; {
                        :large =&gt; {:geometry =&gt; "616x450#"}
                    },
                    :storage =&gt; :s3,
                    :s3_credentials =&gt; {:access_key_id =&gt; "xxx", :secret_access_key =&gt; "xxx"},
                    :path =&gt; ":attachment/:id/:style/:basename.:extension",
                    :bucket =&gt; CONFIG['s3_media_bucket'],
                    :default_url =&gt; "/assets/image_missing.png"
  </code></pre>
  
  <p>and the image URL produced is something like:</p>
  
  <pre><code>http://s3.amazonaws.com/media.example.com/images/6/large/image123.JPG
  </code></pre>
  
  <p>Is there a magic Paperclip option to change this to:</p>
  
  <pre><code>https://s3.amazonaws.com/media.example.com/images/6/large/image123.JPG
  </code></pre>