1
0
mirror of https://github.com/dokku/buildpack-nginx.git synced 2025-10-07 11:14:34 +00:00

Switch template to app-nginx.conf.sigil

This commit is contained in:
Jose Diaz-Gonzalez
2016-09-20 01:38:50 -06:00
parent 8848e945b9
commit dd3ac20c6d
3 changed files with 6 additions and 6 deletions

27
conf/app-nginx.conf.sigil Normal file
View File

@ -0,0 +1,27 @@
worker_processes 1;
error_log stderr;
pid nginx.pid;
daemon off;
events {
worker_connections 768;
}
http {
types_hash_max_size 2048;
include mime.types;
server {
listen {{ $.PORT }};
server_name _;
{{ if ne $.NGINX_ROOT "" }}
root /app/www/{{ $.NGINX_ROOT }};
{{ else }}
root /app/www;
{{ end }}
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}
}