brint/cookbook-magento — pull request #9 by will-parsons (2013-08-19 12:27:25+00:00)
Title: fastcgi_param HTTPS based on X-Forwarded-proto header

Without this, you get an infinite HTTPS redirect for SSL content.