X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=webapp-frontend%2Fnginx.conf;h=10f458247aba09c5e35be5289fbb0d19c22aa11a;hb=64b35796309259667d0dac6f9cdc2ad00bca53ee;hp=47d7b262f51a5a416c8ca1538adafa3be8c4e3e2;hpb=36fc60e07ee3445fd913191d319ca1edf8353f7a;p=portal%2Fnonrtric-controlpanel.git diff --git a/webapp-frontend/nginx.conf b/webapp-frontend/nginx.conf index 47d7b26..10f4582 100644 --- a/webapp-frontend/nginx.conf +++ b/webapp-frontend/nginx.conf @@ -2,19 +2,22 @@ events{} http { include /etc/nginx/mime.types; - - upstream backend { - # to be replaced with hostname:port of nonrtric-gateway once it gets ready - server controlpanel-backend-container:8080; - } - + server { - listen 7070; + listen 8080; server_name localhost; root /usr/share/nginx/html; index index.html; - location /api/ { - proxy_pass http://backend; + location /a1-policy/ { + set $upstream http://nonrtric-gateway:9090; + proxy_pass $upstream; + } + location /ei-producer/{ + set $upstream http://nonrtric-gateway:9090; + proxy_pass $upstream; + } + location / { + try_files $uri $uri/ /index.html; } } } \ No newline at end of file