X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=webapp-frontend%2Fnginx.conf;h=3416fd4ebae7d6db4afceacb3e4f098c05d12249;hb=refs%2Fchanges%2F20%2F6420%2F1;hp=164875c1aae26577b61e3f1fbe23783245501d62;hpb=e8ca79594c2c0da399b3737e543cdc65fe83fa1e;p=portal%2Fnonrtric-controlpanel.git diff --git a/webapp-frontend/nginx.conf b/webapp-frontend/nginx.conf index 164875c..3416fd4 100644 --- a/webapp-frontend/nginx.conf +++ b/webapp-frontend/nginx.conf @@ -2,24 +2,26 @@ events{} http { include /etc/nginx/mime.types; - - upstream backend { - server nonrtricgateway:9090; - } - + resolver 127.0.0.11; server { - listen 7070; + 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 /data-producer/{ + set $upstream nonrtric-gateway; + proxy_pass http://$upstream:9090; } - location /ei-producer/ { - proxy_pass http://backend; + location /data-consumer/{ + 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 +}