2016-11-18 13:12:57 +00:00
|
|
|
|
|
|
|
worker_processes 1;
|
|
|
|
|
|
|
|
events {
|
|
|
|
worker_connections 1024;
|
|
|
|
}
|
|
|
|
|
|
|
|
http {
|
|
|
|
sendfile on;
|
|
|
|
gzip on;
|
|
|
|
default_type application/octet-stream;
|
2017-05-15 06:47:58 +00:00
|
|
|
resolver 127.0.0.1;
|
2016-11-18 13:12:57 +00:00
|
|
|
include /etc/nginx/mime.types;
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 8080;
|
|
|
|
server_name localhost;
|
|
|
|
autoindex off;
|
|
|
|
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
|
|
|
|
location /static {
|
|
|
|
alias public;
|
|
|
|
autoindex on;
|
|
|
|
}
|
|
|
|
|
2017-01-31 13:13:06 +00:00
|
|
|
location ~ ^/auth(?:/(.*))?$ {
|
2017-05-15 06:07:30 +00:00
|
|
|
proxy_pass http://auth:3000/$1$is_args$args;
|
2016-11-18 13:12:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
location ~ ^/salix(?:/(.*))?$ {
|
2017-05-15 06:07:30 +00:00
|
|
|
proxy_pass http://salix:3001/$1$is_args$args;
|
2016-11-18 13:12:57 +00:00
|
|
|
}
|
|
|
|
|
2017-01-31 13:13:06 +00:00
|
|
|
location ~ ^/client(?:/(.*))?$ {
|
2017-05-15 06:07:30 +00:00
|
|
|
proxy_pass http://client:3002/$1$is_args$args;
|
2016-11-18 13:12:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|