From: Lathish Date: Mon, 15 Feb 2021 16:39:55 +0000 (+0000) Subject: BugFix - Enable Controlpanel to start even when gateway is Unavailable X-Git-Tag: 2.2.0~83^2 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F66%2F5666%2F1;p=portal%2Fnonrtric-controlpanel.git BugFix - Enable Controlpanel to start even when gateway is Unavailable Issue-ID: NONRTRIC-367 Change-Id: Ib558d359ff3bed65d796a2d801ebebf6bcc2ae7b Signed-off-by: Lathish --- diff --git a/webapp-frontend/nginx.conf b/webapp-frontend/nginx.conf index 10f4582..2414bde 100644 --- a/webapp-frontend/nginx.conf +++ b/webapp-frontend/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;