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 {
|
2017-06-02 07:29:14 +00:00
|
|
|
listen 80;
|
2016-11-18 13:12:57 +00:00
|
|
|
server_name localhost;
|
|
|
|
autoindex off;
|
|
|
|
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
|
|
|
|
location /static {
|
2017-05-15 08:44:19 +00:00
|
|
|
alias /usr/share/nginx/html;
|
2016-11-18 13:12:57 +00:00
|
|
|
autoindex on;
|
|
|
|
}
|
2017-06-02 13:23:19 +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
|
|
|
}
|
2017-06-02 13:23:19 +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
|
|
|
}
|
2017-06-02 13:23:19 +00:00
|
|
|
location ~ ^/mailer(?:/(.*))?$ {
|
2017-05-29 11:57:18 +00:00
|
|
|
proxy_pass http://mailer:3003/$1$is_args$args;
|
2017-05-29 11:48:20 +00:00
|
|
|
}
|
2017-06-02 13:23:19 +00:00
|
|
|
location ~ ^(?:/(.*))?$ {
|
2017-06-02 07:29:14 +00:00
|
|
|
proxy_pass http://salix:3001/$1$is_args$args;
|
|
|
|
}
|
2016-11-18 13:12:57 +00:00
|
|
|
}
|
2017-06-02 07:29:14 +00:00
|
|
|
}
|