Update release notes
[nonrtric.git] / docker-compose / control-panel / config / nginx.conf
index 374910f..3416fd4 100644 (file)
@@ -2,21 +2,26 @@ events{}
 
 http {
     include /etc/nginx/mime.types;
-
-    upstream backend {
-        server  nonrtric-gateway:9090;
-    }
-
+    resolver 127.0.0.11;
     server {
         listen 8080;
         server_name localhost;
         root /usr/share/nginx/html;
         index index.html;
-        location /a1-policy/v2/ {
-            proxy_pass  http://backend;
+        location /a1-policy/ {
+            set $upstream nonrtric-gateway;
+            proxy_pass http://$upstream:9090;
+        }
+        location /data-producer/{
+            set $upstream nonrtric-gateway;
+            proxy_pass http://$upstream:9090;
+        }
+        location /data-consumer/{
+            set $upstream nonrtric-gateway;
+            proxy_pass http://$upstream:9090;
         }
         location / {
             try_files $uri $uri/ /index.html;
         }
     }
-}
\ No newline at end of file
+}