55 lines
1.2 KiB
Plaintext
55 lines
1.2 KiB
Plaintext
|
|
||
|
worker_processes 1;
|
||
|
|
||
|
error_log /var/log/nginx/error.log;
|
||
|
pid /var/run/nginx.pid;
|
||
|
|
||
|
events {
|
||
|
worker_connections 1024;
|
||
|
}
|
||
|
|
||
|
http {
|
||
|
sendfile on;
|
||
|
gzip on;
|
||
|
default_type application/octet-stream;
|
||
|
|
||
|
access_log /var/log/nginx/access.log;
|
||
|
|
||
|
server {
|
||
|
listen 8080;
|
||
|
server_name localhost;
|
||
|
autoindex off;
|
||
|
|
||
|
root /usr/share/nginx/html;
|
||
|
|
||
|
location /static {
|
||
|
alias public;
|
||
|
autoindex on;
|
||
|
}
|
||
|
|
||
|
location ~ ^/account(?:/(.*))?$ {
|
||
|
proxy_pass http://192.168.99.100:3000/$1$is_args$args;
|
||
|
}
|
||
|
|
||
|
location ~ ^/salix(?:/(.*))?$ {
|
||
|
proxy_pass http://192.168.99.100:3001/$1$is_args$args;
|
||
|
}
|
||
|
|
||
|
location ~ ^/customer(?:/(.*))?$ {
|
||
|
proxy_pass http://192.168.99.100:3002/$1$is_args$args;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
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;
|
||
|
}
|
||
|
}
|