1
0
mirror of https://github.com/dokku/buildpack-nginx.git synced 2024-12-28 06:45:25 +00:00

Merge pull request #3 from dokku/mh-nginx-root

change ROOT env var and doc it
This commit is contained in:
Michael Hobbs 2015-11-25 10:43:18 -08:00
commit d1cccfc747
2 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ This buildpack has been successfully run on Digital Ocean instances of Ubuntu 14
All static files that you want to serve should be in the root directory of your repository. No need to use a seperate `www` folder. `buildpack-nginx` will automatically download the buildpack, download NGINX, compile it, and install it. The next time you push your project, the buildpack will reuse the precompiled binaries. All static files that you want to serve should be in the root directory of your repository. No need to use a seperate `www` folder. `buildpack-nginx` will automatically download the buildpack, download NGINX, compile it, and install it. The next time you push your project, the buildpack will reuse the precompiled binaries.
## NGINX CONFIGURATION ## NGINX CONFIGURATION
Override default configuration by adding `nginx.conf.erb` in the root directory Override default configuration by adding `nginx.conf.erb` in the root directory. You can also override the nginx root by setting `$NGINX_ROOT`
## Credits and License ## Credits and License
`buildpack-nginx` is licensed under the CC0 1.0 Universal license and has been informed by many similar projects on the web `buildpack-nginx` is licensed under the CC0 1.0 Universal license and has been informed by many similar projects on the web

View File

@ -13,8 +13,8 @@ http {
server { server {
listen <%= ENV["PORT"] %>; listen <%= ENV["PORT"] %>;
server_name _; server_name _;
<% if ENV["ROOT"] %> <% if ENV["NGINX_ROOT"] %>
root /app/www/<%= ENV["ROOT"] %>; root /app/www/<%= ENV["NGINX_ROOT"] %>;
<% else %> <% else %>
root /app/www; root /app/www;
<% end %> <% end %>