Dockerize the frontend of controlpanel
[portal/nonrtric-controlpanel.git] / webapp-frontend / nginx.conf
diff --git a/webapp-frontend/nginx.conf b/webapp-frontend/nginx.conf
new file mode 100644 (file)
index 0000000..47d7b26
--- /dev/null
@@ -0,0 +1,20 @@
+events{}
+
+http {
+    include /etc/nginx/mime.types;
+
+    upstream backend {
+        # to be replaced with hostname:port of nonrtric-gateway once it gets ready
+        server  controlpanel-backend-container:8080;
+    }
+
+    server {
+        listen 7070;
+        server_name localhost;
+        root /usr/share/nginx/html;
+        index index.html;
+        location /api/ {
+            proxy_pass  http://backend;
+        }
+    }
+}
\ No newline at end of file