From: Lathish Date: Mon, 15 Feb 2021 16:41:52 +0000 (+0000) Subject: BugFix - Enable Controlpanel to start even when gateway is Unavailable X-Git-Tag: 2.2.0~68^2 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=efd402ee884390a28031231ea197edca027bfb5c;p=nonrtric.git BugFix - Enable Controlpanel to start even when gateway is Unavailable Issue-ID: NONRTRIC-367 Change-Id: I12251826a187aa2eee92a22729ede0f7987e3694 Signed-off-by: Lathish --- diff --git a/docker-compose/control-panel/config/nginx.conf b/docker-compose/control-panel/config/nginx.conf index 10f45824..2414bde0 100644 --- a/docker-compose/control-panel/config/nginx.conf +++ b/docker-compose/control-panel/config/nginx.conf @@ -2,19 +2,19 @@ events{} http { include /etc/nginx/mime.types; - + resolver 127.0.0.11; server { listen 8080; server_name localhost; root /usr/share/nginx/html; index index.html; location /a1-policy/ { - set $upstream http://nonrtric-gateway:9090; - proxy_pass $upstream; + set $upstream nonrtric-gateway; + proxy_pass http://$upstream:9090; } location /ei-producer/{ - set $upstream http://nonrtric-gateway:9090; - proxy_pass $upstream; + set $upstream nonrtric-gateway; + proxy_pass http://$upstream:9090; } location / { try_files $uri $uri/ /index.html;