Fix Policy Instance Dialog Component
[portal/nonrtric-controlpanel.git] / webapp-frontend / nginx.conf
index 47d7b26..701d8fa 100644 (file)
@@ -4,8 +4,7 @@ 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  nonrtricgateway:9090;
     }
 
     server {
@@ -13,8 +12,11 @@ http {
         server_name localhost;
         root /usr/share/nginx/html;
         index index.html;
-        location /api/ {
+        location /a1-policy/v2/ {
             proxy_pass  http://backend;
         }
+        location / {
+           try_files $uri $uri/ /index.html;
+        }
     }
 }
\ No newline at end of file