2018-02-03 19:14:44 +00:00
|
|
|
|
2018-12-27 15:10:55 +00:00
|
|
|
server {
|
|
|
|
listen 80 default_server;
|
|
|
|
listen [::]:80 default_server;
|
|
|
|
server_name _;
|
|
|
|
autoindex off;
|
2018-02-03 19:14:44 +00:00
|
|
|
|
2018-12-27 15:10:55 +00:00
|
|
|
root /usr/share/nginx/html;
|
2018-02-03 19:14:44 +00:00
|
|
|
|
2019-01-26 13:22:59 +00:00
|
|
|
location ~ ^(/[a-zA-Z0-9_-]+)?/(?<path>api(/.*)?)$ {
|
2018-12-31 13:02:46 +00:00
|
|
|
resolver 127.0.0.11;
|
2019-01-26 13:22:59 +00:00
|
|
|
proxy_pass http://api:3000/$path$is_args$args;
|
2018-12-27 15:10:55 +00:00
|
|
|
}
|
2019-01-25 22:02:29 +00:00
|
|
|
location ~ ^(?:/(.*))?$ {
|
2018-12-27 15:10:55 +00:00
|
|
|
alias /salix/dist/$1;
|
|
|
|
autoindex on;
|
|
|
|
}
|
2018-02-03 19:14:44 +00:00
|
|
|
}
|