Update the Readme file 34/5634/1
authorLathish <lathishbabu.ganesan@est.tech>
Thu, 11 Feb 2021 11:03:34 +0000 (11:03 +0000)
committerLathish <lathishbabu.ganesan@est.tech>
Thu, 11 Feb 2021 11:03:38 +0000 (11:03 +0000)
Fix the Nginx conf to start even when upstream is unavailable

Issue-ID: NONRTRIC-367
Change-Id: I01fc1b6d855b1c5e20f34e1045e9d5c18c11bfb9
Signed-off-by: Lathish <lathishbabu.ganesan@est.tech>
docker-compose/README.md
docker-compose/control-panel/config/nginx.conf

index d2f25c2..e405131 100644 (file)
@@ -14,6 +14,10 @@ limitations under the License.
 
 For more information about license please see the [LICENSE](LICENSE.txt) file for details.
 
+## O-RAN-SC ControlPanel Gateway:
+To view the policy or enrichment information in control panel gui along with Policy Management Service & Enrichment Coordinator Service you should also have nonrtric gateway because all the request from the gui is passed through this API gateway.
+To start all the necessary components,
+docker-compose -f docker-compose.yaml -f control-panel/docker-compose.yaml -f nonrtric-gateway/docker-compose.yaml -f policy-service/docker-compose.yaml -f ecs/docker-compose.yaml -f a1-sim/docker-compose.yaml up
 ## O-RAN-SC docker-compose files:
 The docker compose file helps the user to deploy all or partial components of nonrtric with one command.
 
index bf12f87..10f4582 100644 (file)
@@ -2,21 +2,19 @@ events{}
 
 http {
     include /etc/nginx/mime.types;
-
-    upstream backend {
-        server  nonrtric-gateway:9090;
-    }
-
+    
     server {
         listen 8080;
         server_name localhost;
         root /usr/share/nginx/html;
         index index.html;
         location /a1-policy/ {
-            proxy_pass  http://backend;
+            set $upstream http://nonrtric-gateway:9090;
+            proxy_pass  $upstream;
         }
-        location /ei-producer/ {
-            proxy_pass  http://backend;
+        location /ei-producer/{
+            set $upstream http://nonrtric-gateway:9090;
+            proxy_pass  $upstream;
         }
         location / {
             try_files $uri $uri/ /index.html;