title: Where do I centrally configure the access credentials for the fog gem?
body: <p>I don't want to place it in the code in situ where it is to be used; how/where should it be defined normally?</p>
  
  <p>I want the connection to be accessible from all over the application, as follows:</p>
  
  <pre><code>connection = Fog::Storage.new({
    :provider                 =&gt; 'AWS',
    :aws_secret_access_key    =&gt; YOUR_SECRET_ACCESS_KEY,
    :aws_access_key_id        =&gt; YOUR_SECRET_ACCESS_KEY_ID
  })
  </code></pre>
  
  <p>(from <a href="http://fog.io/1.0.0/about/getting_started.html" rel="nofollow">http://fog.io/1.0.0/about/getting_started.html</a>)</p>