2016-11-08 14:06:45 +00:00
|
|
|
|
|
|
|
worker_processes 1;
|
|
|
|
|
2016-11-18 13:12:57 +00:00
|
|
|
error_log temp/error.log;
|
|
|
|
pid temp/nginx.pid;
|
2016-11-08 14:06:45 +00:00
|
|
|
|
|
|
|
events {
|
|
|
|
worker_connections 1024;
|
|
|
|
}
|
|
|
|
|
|
|
|
http {
|
2016-11-18 13:12:57 +00:00
|
|
|
sendfile on;
|
|
|
|
gzip on;
|
|
|
|
default_type application/octet-stream;
|
2016-11-09 11:42:37 +00:00
|
|
|
|
2016-11-18 13:12:57 +00:00
|
|
|
access_log temp/access.log;
|
|
|
|
client_body_temp_path temp/client-body;
|
|
|
|
proxy_temp_path temp/proxy;
|
|
|
|
fastcgi_temp_path temp/fastcgi;
|
|
|
|
uwsgi_temp_path temp/uwsgi;
|
|
|
|
scgi_temp_path temp/scgi;
|
2016-11-09 11:42:37 +00:00
|
|
|
|
|
|
|
server {
|
2018-02-03 21:53:02 +00:00
|
|
|
listen {{port}};
|
|
|
|
server_name {{host}};
|
2016-11-09 11:42:37 +00:00
|
|
|
autoindex off;
|
|
|
|
|
2018-02-03 19:14:44 +00:00
|
|
|
{{#services}}
|
|
|
|
location ~ ^/{{name}}(?:/(.*))?$ {
|
|
|
|
proxy_pass http://127.0.0.1:{{port}}/$1$is_args$args;
|
2017-06-02 07:29:14 +00:00
|
|
|
}
|
2018-02-03 19:14:44 +00:00
|
|
|
{{/services}}
|
|
|
|
|
|
|
|
location ~ ^/static(?:/(.*))?$ {
|
|
|
|
proxy_pass http://127.0.0.1:{{devServerPort}}/$1$is_args$args;
|
2017-12-19 11:29:35 +00:00
|
|
|
}
|
2017-06-07 07:07:58 +00:00
|
|
|
location ~ ^(?:/(.*))?$ {
|
2018-02-03 19:14:44 +00:00
|
|
|
proxy_pass http://127.0.0.1:{{defaultPort}}/$1$is_args$args;
|
2017-06-07 07:07:58 +00:00
|
|
|
}
|
2016-11-09 11:42:37 +00:00
|
|
|
}
|
2016-11-11 12:33:58 +00:00
|
|
|
|
|
|
|
types {
|
|
|
|
text/html html;
|
|
|
|
application/json json;
|
2018-02-03 19:14:44 +00:00
|
|
|
application/javascript js;
|
2016-11-11 12:33:58 +00:00
|
|
|
text/css css scss;
|
|
|
|
text/xml xml;
|
|
|
|
image/x-icon ico;
|
|
|
|
image/png png;
|
|
|
|
image/svg+xml svg;
|
|
|
|
image/gif gif;
|
|
|
|
image/jpeg jpeg jpg;
|
|
|
|
}
|
2016-11-08 14:06:45 +00:00
|
|
|
}
|