salix/services/nginx/conf-prod.conf

43 lines
793 B
Plaintext
Raw Normal View History

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;
include /etc/nginx/mime.types;
server {
listen 8080;
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;
autoindex on;
}
location ~ ^/auth(?:/(.*))?$ {
2017-05-15 06:07:30 +00:00
proxy_pass http://auth:3000/$1$is_args$args;
}
location ~ ^/salix(?:/(.*))?$ {
2017-05-15 06:07:30 +00:00
proxy_pass http://salix:3001/$1$is_args$args;
}
location ~ ^/client(?:/(.*))?$ {
2017-05-15 06:07:30 +00:00
proxy_pass http://client:3002/$1$is_args$args;
}
2017-05-29 11:48:20 +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
}
}
}