mirror of
https://github.com/dokku/buildpack-nginx.git
synced 2024-11-15 23:13:07 +00:00
0d2e4c3ee6
Closes #40
30 lines
474 B
Plaintext
30 lines
474 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;
|
|
charset UTF-8;
|
|
server {
|
|
listen {{ $.PORT }};
|
|
server_name _;
|
|
{{ if ne $.NGINX_ROOT "" }}
|
|
root /app/www/{{ $.NGINX_ROOT }};
|
|
{{ else }}
|
|
root /app/www;
|
|
{{ end }}
|
|
index index.html;
|
|
port_in_redirect off;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
}
|
|
}
|