1
0
mirror of https://github.com/dokku/buildpack-nginx.git synced 2024-11-09 05:00:50 +00:00
buildpack-nginx/conf/nginx.conf.erb
Leonardo Wistuba de França f1d835dd90 Update nginx.conf.erb
2016-09-11 12:05:14 -03:00

25 lines
404 B
Plaintext

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 <%= ENV["PORT"] %>;
server_name _;
<% if ENV["ROOT"] %>
root /app/www/<%= ENV["ROOT"] %>;
<% else %>
root /app/www;
<% end %>
index index.html;
try_files $uri $uri/ /index.html;
}
}