heroku / heroku-buildpack-nginx

Run NGINX in a Heroku app
1 stars 3 forks source link

Update readme/config with ssl redirect example #66

Closed niedfelj closed 4 years ago

niedfelj commented 4 years ago

Hi,

Could you update the readme/config with a sample to force SSL? I think it would be useful as Heroku is a bit non-standard in this regard. I believe this is the config:

if ($http_x_forwarded_proto != "https") { return 301 https://$host$request_uri; }

beanieboi commented 4 years ago

@niedfelj sorry, i'm pretty busy at the moment. would you be able to open a PR for that? i'd really appreciate that.

niedfelj commented 4 years ago

@beanieboi here https://github.com/heroku/heroku-buildpack-nginx/pull/68