[CORD-2541] Fixing nginx proxy for the local scenario
Change-Id: I7a923acc6a090fdc3418de265de6183a5507dabd
diff --git a/nginx.conf b/nginx.conf
index b392f61..d2d7f78 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -13,14 +13,12 @@
# Redirect for FE config
- location /spa/ {
- rewrite ^/spa/(.*)$ /$1;
+ location /xos/ {
+ rewrite ^/xos/(.*)$ /$1;
}
- location /api {
- resolver 127.0.0.1 valid=30s;
- proxy_pass http://xos-ws:3000;
- # proxy_redirect http://xos-ws:3000/spa /;
+ location /xosapi/ {
+ proxy_pass http://xos-chameleon:9101;
}
location /socket.io {
@@ -31,4 +29,4 @@
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
-}
\ No newline at end of file
+}