nginx conf fixes

This commit is contained in:
Juan Ferrer 2019-02-01 11:54:36 +01:00
parent 8889f8d5cf
commit a781346f17
1 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,9 @@
upstream back {
server back_1;
server back_2;
server back_3;
}
server {
listen 80 default_server;
listen [::]:80 default_server;
@ -11,11 +16,6 @@ server {
location @notfound {
return 302 /;
}
upstream back {
server back_1;
server back_2;
server back_3;
}
location ~ ^(/[a-zA-Z0-9_-]+)?/(?<path>api(/.*)?)$ {
proxy_pass http://back:3000/$path$is_args$args;
}