2013-08-17 06:41:19 +00:00
|
|
|
worker_processes 1;
|
2013-08-18 02:53:44 +00:00
|
|
|
error_log stderr;
|
2013-08-17 06:41:19 +00:00
|
|
|
pid nginx.pid;
|
|
|
|
daemon off;
|
|
|
|
|
|
|
|
events {
|
2014-11-06 22:29:41 +00:00
|
|
|
worker_connections 768;
|
2014-06-20 17:37:51 +00:00
|
|
|
}
|
2013-08-17 06:41:19 +00:00
|
|
|
|
|
|
|
http {
|
2014-11-06 22:29:41 +00:00
|
|
|
types_hash_max_size 2048;
|
|
|
|
include mime.types;
|
|
|
|
server {
|
|
|
|
listen <%= ENV["PORT"] %>;
|
|
|
|
server_name _;
|
2015-11-25 18:43:01 +00:00
|
|
|
<% if ENV["NGINX_ROOT"] %>
|
|
|
|
root /app/www/<%= ENV["NGINX_ROOT"] %>;
|
2015-10-06 00:03:08 +00:00
|
|
|
<% else %>
|
|
|
|
root /app/www;
|
|
|
|
<% end %>
|
2014-11-06 22:29:41 +00:00
|
|
|
index index.html;
|
2016-09-20 05:15:28 +00:00
|
|
|
|
2016-06-28 11:45:23 +00:00
|
|
|
location / {
|
|
|
|
try_files $uri $uri/ /index.html;
|
|
|
|
}
|
2014-11-06 22:29:41 +00:00
|
|
|
}
|
2014-06-20 17:37:51 +00:00
|
|
|
}
|