44 lines
927 B
Plaintext
44 lines
927 B
Plaintext
|
|
worker_processes 1;
|
|
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
sendfile on;
|
|
gzip on;
|
|
default_type application/octet-stream;
|
|
resolver 127.0.0.1;
|
|
include /etc/nginx/mime.types;
|
|
|
|
server {
|
|
listen 80;
|
|
server_name localhost;
|
|
autoindex off;
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
location ~ ^/static(?:/(.*))?$ {
|
|
alias /usr/share/nginx/html;
|
|
autoindex on;
|
|
}
|
|
location ~ ^/auth(?:/(.*))?$ {
|
|
proxy_pass http://auth:3000/$1$is_args$args;
|
|
}
|
|
location ~ ^/client(?:/(.*))?$ {
|
|
proxy_pass http://client:3002/$1$is_args$args;
|
|
}
|
|
location ~ ^/mailer(?:/(.*))?$ {
|
|
proxy_pass http://mailer:3003/$1$is_args$args;
|
|
}
|
|
location ~ ^/production(?:/(.*))?$ {
|
|
proxy_pass http://production:3004/$1$is_args$args;
|
|
}
|
|
# Este tiene que ser el último
|
|
location ~ ^(?:/(.*))?$ {
|
|
proxy_pass http://salix:3001/$1$is_args$args;
|
|
}
|
|
}
|
|
}
|