Cloudservices like Bluemix and Heroku provide a really convenient way of deploying webapps without burdening users with the worry of managing their own servers and infrastructure.
Though it isn't the best use for these services, one may find find themselves deploying a static website on Bluemix, or using the static buildpack as a proxy to some service.
Bluemix provides HTTP and HTTPS endpoints to all created applications. Sometimes you only want users to use https because you need them to authenticate, or simply because the man is watching. :-) Either way, here's a sample nginx config that you can throw into the root folder of your static application:
The major change is a redirect of all http requests to their https counterparts. The script also enforces HSTS, which tells your users to always make https requests. The rest of the conf file is copied from Cloudfoundry's static buildpack.