Nginx conf fixed
This commit is contained in:
parent
f584bd6953
commit
f47ce96ce8
|
@ -7,9 +7,9 @@ server {
|
||||||
|
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
|
|
||||||
location ~ ^(/[a-zA-Z0-9_-]+)?(?:/api(/(.*))?)$ {
|
location ~ ^(/[a-zA-Z0-9_-]+)?/(?<path>api(/.*)?)$ {
|
||||||
resolver 127.0.0.11;
|
resolver 127.0.0.11;
|
||||||
proxy_pass http://api:3000/$1$is_args$args;
|
proxy_pass http://api:3000/$path$is_args$args;
|
||||||
}
|
}
|
||||||
location ~ ^(?:/(.*))?$ {
|
location ~ ^(?:/(.*))?$ {
|
||||||
alias /salix/dist/$1;
|
alias /salix/dist/$1;
|
||||||
|
|
Loading…
Reference in New Issue