Update the Readme file
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>
diff --git a/docker-compose/control-panel/config/nginx.conf b/docker-compose/control-panel/config/nginx.conf
index bf12f87..10f4582 100644
--- a/docker-compose/control-panel/config/nginx.conf
+++ b/docker-compose/control-panel/config/nginx.conf
@@ -2,21 +2,19 @@
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;