title: What does force_ssl do in Rails?
body: <p>In a previous <a href="https://stackoverflow.com/questions/15673328/how-does-nginx-pass-ssl-encrypted-data-to-a-rails-app">question</a> I found out that I should be setting nginx ssl termination and not having Rails process encrypted data.</p>
  
  <p>Then why does the following exist?</p>
  
  <pre><code>config.force_ssl = true
  </code></pre>
  
  <p>I see this commented out in the production config file. But if the expectation is that nginx will handle all the ssl stuff so that my rails app doesn't deal with encrypted data then what does <code>config.force_ssl = true</code> do?</p>
  
  <p>Should I leave it commented out in production if I know I will always be using nginx?</p>