1
0
mirror of https://github.com/dokku/buildpack-nginx.git synced 2024-11-29 03:43:05 +00:00

Merge pull request #8 from btkostner/master

added ROOT variable
This commit is contained in:
Florian Heinemann 2015-10-10 22:45:21 +02:00
commit 7a023ab687

View File

@ -13,7 +13,11 @@ http {
server { server {
listen <%= ENV["PORT"] %>; listen <%= ENV["PORT"] %>;
server_name _; server_name _;
<% if ENV["ROOT"] %>
root /app/www/<%= ENV["ROOT"] %>;
<% else %>
root /app/www; root /app/www;
<% end %>
index index.html; index index.html;
} }
} }