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.
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 theserver
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.