salix/services/nginx/conf-dev.conf

68 lines
1.7 KiB
Plaintext
Raw Normal View History

2016-11-08 14:06:45 +00:00
worker_processes 1;
error_log temp/error.log;
pid temp/nginx.pid;
2016-11-08 14:06:45 +00:00
events {
worker_connections 1024;
}
http {
sendfile on;
gzip on;
default_type application/octet-stream;
access_log temp/access.log;
client_body_temp_path temp/client-body;
proxy_temp_path temp/proxy;
fastcgi_temp_path temp/fastcgi;
uwsgi_temp_path temp/uwsgi;
scgi_temp_path temp/scgi;
server {
listen 5000;
server_name localhost;
autoindex off;
location ~ ^/static(?:/(.*))?$ {
proxy_pass http://127.0.0.1:8081/$1$is_args$args;
}
location ~ ^/auth(?:/(.*))?$ {
proxy_pass http://127.0.0.1:3000/$1$is_args$args;
}
location ~ ^/client(?:/(.*))?$ {
proxy_pass http://127.0.0.1:3002/$1$is_args$args;
}
location ~ ^/mailer(?:/(.*))?$ {
2017-05-29 11:48:20 +00:00
proxy_pass http://127.0.0.1:3003/$1$is_args$args;
}
2017-06-07 06:43:25 +00:00
location ~ ^/production(?:/(.*))?$ {
proxy_pass http://127.0.0.1:3004/$1$is_args$args;
}
location ~ ^/route(?:/(.*))?$ {
proxy_pass http://127.0.0.1:3005/$1$is_args$args;
}
2017-11-27 14:08:18 +00:00
location ~ ^/print(?:/(.*))?$ {
proxy_pass http://127.0.0.1:3006/$1$is_args$args;
}
2017-06-07 07:07:58 +00:00
# Este tiene que ser el último
location ~ ^(?:/(.*))?$ {
proxy_pass http://127.0.0.1:3001/$1$is_args$args;
}
}
2016-11-11 12:33:58 +00:00
types {
text/html html;
application/json json;
application/javascript js;
text/css css scss;
text/xml xml;
image/x-icon ico;
image/png png;
image/svg+xml svg;
image/gif gif;
image/jpeg jpeg jpg;
}
2016-11-08 14:06:45 +00:00
}