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;
|
|
|
|
|
|
|
|
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-12 11:14:52 +00:00
|
|
|
proxy_pass http://test-auth:3000/$1$is_args$args;
|
2016-11-18 13:12:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
location ~ ^/salix(?:/(.*))?$ {
|
2017-05-12 11:14:52 +00:00
|
|
|
proxy_pass http://test-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-12 11:14:52 +00:00
|
|
|
proxy_pass http://test-client:3002/$1$is_args$args;
|
2016-11-18 13:12:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|