salix/services/nginx/conf-prod.conf

47 lines
1017 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 80;
server_name localhost;
autoindex off;
root /usr/share/nginx/html;
2017-06-07 06:43:25 +00:00
location ~ ^/static(?:/(.*))?$ {
2017-06-08 09:08:45 +00:00
alias /usr/share/nginx/html/$1;
autoindex on;
}
location ~ ^/auth(?:/(.*))?$ {
2017-05-15 06:07:30 +00:00
proxy_pass http://auth:3000/$1$is_args$args;
}
location ~ ^/client(?:/(.*))?$ {
2017-05-15 06:07:30 +00:00
proxy_pass http://client:3002/$1$is_args$args;
}
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-07 06:43:25 +00:00
location ~ ^/production(?:/(.*))?$ {
proxy_pass http://production:3004/$1$is_args$args;
}
location ~ ^/route(?:/(.*))?$ {
proxy_pass http://route:3005/$1$is_args$args;
}
2017-06-07 07:09:35 +00:00
# Este tiene que ser el último
location ~ ^(?:/(.*))?$ {
proxy_pass http://salix:3001/$1$is_args$args;
}
}
}