Add path for EI Consumer 70/6370/1
authorelinuxhenrik <henrik.b.andersson@est.tech>
Tue, 22 Jun 2021 09:01:56 +0000 (11:01 +0200)
committerelinuxhenrik <henrik.b.andersson@est.tech>
Tue, 22 Jun 2021 09:17:02 +0000 (11:17 +0200)
Issue-ID: NONRTRIC-537
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
Change-Id: Iabbc7a4d1a9373a762e5f7db83745d2c64d81a46

docker-compose/control-panel/config/nginx.conf
docker-compose/nonrtric-gateway/config/application-nonrtricgateway.yaml
nonrtric-gateway/config/application.yaml
webapp-frontend/nginx.conf
webapp-frontend/proxy.conf.json

index 916caef..3416fd4 100644 (file)
@@ -16,8 +16,12 @@ http {
             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
+}
index 656ebaf..fb8c106 100644 (file)
@@ -33,7 +33,7 @@ spring:
       - id: A1-EI
         uri: https://localhost:8434
         predicates:
-        - Path=/data-producer/**
+        - Path=/data-producer/**,/data-consumer/**
 management:
   endpoint:
     gateway:
@@ -49,4 +49,4 @@ logging:
     org.springframework.cloud.gateway: INFO
     reactor.netty: INFO
   file:
-    name: /var/log/nonrtric-gateway/application.log
\ No newline at end of file
+    name: /var/log/nonrtric-gateway/application.log
index 656ebaf..fb8c106 100644 (file)
@@ -33,7 +33,7 @@ spring:
       - id: A1-EI
         uri: https://localhost:8434
         predicates:
-        - Path=/data-producer/**
+        - Path=/data-producer/**,/data-consumer/**
 management:
   endpoint:
     gateway:
@@ -49,4 +49,4 @@ logging:
     org.springframework.cloud.gateway: INFO
     reactor.netty: INFO
   file:
-    name: /var/log/nonrtric-gateway/application.log
\ No newline at end of file
+    name: /var/log/nonrtric-gateway/application.log
index 916caef..3416fd4 100644 (file)
@@ -16,8 +16,12 @@ http {
             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
+}
index becd017..3284709 100644 (file)
@@ -6,5 +6,9 @@
   "/data-producer": {
     "target": "http://localhost:9090",
     "secure": false
- }
-}
\ No newline at end of file
+  },
+  "/data-consumer": {
+    "target": "http://localhost:9090",
+    "secure": false
+  }
+}