Nginx conf fixed

This commit is contained in:
Juan Ferrer 2019-01-26 14:22:59 +01:00
parent f584bd6953
commit f47ce96ce8
1 changed files with 2 additions and 2 deletions

View File

@ -7,9 +7,9 @@ server {
root /usr/share/nginx/html;
location ~ ^(/[a-zA-Z0-9_-]+)?(?:/api(/(.*))?)$ {
location ~ ^(/[a-zA-Z0-9_-]+)?/(?<path>api(/.*)?)$ {
resolver 127.0.0.11;
proxy_pass http://api:3000/$1$is_args$args;
proxy_pass http://api:3000/$path$is_args$args;
}
location ~ ^(?:/(.*))?$ {
alias /salix/dist/$1;