2016-11-08 14:06:45 +00:00
|
|
|
|
|
|
|
worker_processes 1;
|
|
|
|
|
2016-11-09 11:42:37 +00:00
|
|
|
error_log build/nginx/error.log;
|
|
|
|
pid build/nginx/nginx.pid;
|
2016-11-08 14:06:45 +00:00
|
|
|
|
|
|
|
events {
|
|
|
|
worker_connections 1024;
|
|
|
|
}
|
|
|
|
|
|
|
|
http {
|
2016-11-09 11:42:37 +00:00
|
|
|
sendfile on;
|
2016-11-11 11:04:50 +00:00
|
|
|
gzip on;
|
2016-11-09 11:42:37 +00:00
|
|
|
default_type application/octet-stream;
|
|
|
|
|
|
|
|
access_log build/nginx/access.log;
|
|
|
|
client_body_temp_path build/nginx/client-body;
|
|
|
|
proxy_temp_path build/nginx/proxy;
|
|
|
|
fastcgi_temp_path build/nginx/fastcgi;
|
|
|
|
uwsgi_temp_path build/nginx/uwsgi;
|
|
|
|
scgi_temp_path build/nginx/scgi;
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 8080;
|
|
|
|
server_name localhost;
|
|
|
|
autoindex off;
|
|
|
|
|
|
|
|
location /static {
|
|
|
|
alias build/public/;
|
|
|
|
autoindex on;
|
|
|
|
}
|
|
|
|
|
|
|
|
location ~ ^/account(?:/(.*))?$ {
|
|
|
|
proxy_pass http://127.0.0.1:3000/$1$is_args$args;
|
|
|
|
}
|
|
|
|
|
|
|
|
location ~ ^/salix(?:/(.*))?$ {
|
|
|
|
proxy_pass http://127.0.0.1:3001/$1$is_args$args;
|
|
|
|
}
|
|
|
|
|
2016-11-17 11:56:35 +00:00
|
|
|
location ~ ^/client(?:/(.*))?$ {
|
2016-11-09 11:42:37 +00:00
|
|
|
proxy_pass http://127.0.0.1:3002/$1$is_args$args;
|
|
|
|
}
|
|
|
|
}
|
2016-11-11 12:33:58 +00:00
|
|
|
|
|
|
|
types {
|
|
|
|
text/html html;
|
|
|
|
application/json json;
|
|
|
|
application/javascript js;
|
|
|
|
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
|
|
|
}
|
2016-11-09 11:42:37 +00:00
|
|
|
|