1
0
mirror of https://github.com/dokku/buildpack-nginx.git synced 2025-06-26 02:20:47 +00:00

Move to supporting sigil templates by default

This commit is contained in:
Jose Diaz-Gonzalez
2016-09-20 00:18:28 -06:00
parent b9842399a3
commit 28d1a580cf
3 changed files with 20 additions and 12 deletions

View File

@ -11,13 +11,13 @@ http {
types_hash_max_size 2048;
include mime.types;
server {
listen <%= ENV["PORT"] %>;
listen {{ $.PORT }};
server_name _;
<% if ENV["NGINX_ROOT"] %>
root /app/www/<%= ENV["NGINX_ROOT"] %>;
<% else %>
{{ if ne $.NGINX_ROOT "" }}
root /app/www/{{ $.NGINX_ROOT }};
{{ else }}
root /app/www;
<% end %>
{{ end }}
index index.html;
location / {