tonycoco / heroku-buildpack-ember-cli

A Heroku Buildpack for Ember CLI Applications
MIT License
321 stars 121 forks source link

Add NGINX config fragments. #130

Closed jimsynz closed 8 years ago

jimsynz commented 8 years ago

Hi there.

Given that there seemed to be no middle ground between setting a few ENV vars or replacing the entire NGINX config, I thought it might be nice if we dynamically included a config directory that allows the buildpack user to add fragments of NGINX config without having to replace the buildpack config and potentially lose any further enhancements made by the community.

Therefore; I've added config/nginx.d/ and an include line in the server declaration of the main NGINX config. If you create a file ending in .conf and drop it in this directory then NGINX will include the config in it when it fires up.

danconnell commented 8 years ago

:+1: I had to do the same thing recently for the exact same nginx rule haha