X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=webapp-frontend%2Fnginx.conf;h=916caef6a2729cfde27819b57e14f8e201a667c4;hb=refs%2Fchanges%2F71%2F6071%2F2;hp=3da60039836df89b63e59db04b8392c31ba2718c;hpb=85132f5ec832e4d28a334a21a036e4b3a9ef7eca;p=portal%2Fnonrtric-controlpanel.git diff --git a/webapp-frontend/nginx.conf b/webapp-frontend/nginx.conf index 3da6003..916caef 100644 --- a/webapp-frontend/nginx.conf +++ b/webapp-frontend/nginx.conf @@ -2,24 +2,22 @@ events{} http { include /etc/nginx/mime.types; - - upstream backend { - server nonrtric-gateway:9090; - } - + resolver 127.0.0.11; server { listen 8080; server_name localhost; root /usr/share/nginx/html; index index.html; location /a1-policy/ { - proxy_pass http://backend; + set $upstream nonrtric-gateway; + proxy_pass http://$upstream:9090; } - location /ei-producer/ { - proxy_pass http://backend; + location /data-producer/{ + set $upstream nonrtric-gateway; + proxy_pass http://$upstream:9090; } location / { - try_files $uri $uri/ /index.html; + try_files $uri $uri/ /index.html; } } } \ No newline at end of file