Configuring ngnix to proxy request toward the Node server
Change-Id: If9ae80afeef276886f87602d6d973bb30ac19dce
diff --git a/nginx.conf b/nginx.conf
new file mode 100644
index 0000000..659bb61
--- /dev/null
+++ b/nginx.conf
@@ -0,0 +1,20 @@
+server {
+ listen 80;
+ server_name localhost;
+
+ #charset koi8-r;
+ #access_log /var/log/nginx/log/host.access.log main;
+
+ location / {
+ root /var/www/dist;
+ index index.html index.htm;
+ }
+
+ location /api {
+ proxy_pass http://xos-rest-gw:3000;
+ }
+
+ location /socket.io {
+ proxy_pass http://xos-rest-gw:3000;
+ }
+}
\ No newline at end of file