X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=webapp-frontend%2Fnginx.conf;h=2414bde0c62116df14e044b6bb586459e9ceaad3;hb=05b8701c0d0f4ebc937ecdbff1561c9e83148e3d;hp=8ae7bd867b6801fd6ff1fb264cf2d49f5a42ef98;hpb=7443264a661235f08797ebf0dbb6a512f6485756;p=portal%2Fnonrtric-controlpanel.git diff --git a/webapp-frontend/nginx.conf b/webapp-frontend/nginx.conf index 8ae7bd8..2414bde 100644 --- a/webapp-frontend/nginx.conf +++ b/webapp-frontend/nginx.conf @@ -2,21 +2,22 @@ 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 /v2/ { - proxy_pass http://backend; + location /a1-policy/ { + set $upstream nonrtric-gateway; + proxy_pass http://$upstream:9090; + } + location /ei-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