This repository has been archived on 2020-10-30. You can view files and clone it, but cannot push or open issues or pull requests.
2020-05-03 14:42:33 +00:00
|
|
|
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 {
|
2020-05-03 16:14:55 +00:00
|
|
|
listen {{ $.PORT }};
|
2020-05-03 14:42:33 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
error_page 404 /404.html;
|
|
|
|
location = /404.html {
|
|
|
|
root /app/www/{{ $.NGINX_ROOT }};
|
|
|
|
internal;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|