X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=webapp-frontend%2Fnginx.conf;h=701d8fafe8b8611bcf3ec8639745ef88766a553c;hb=7da7bf67c433c02f72be2aad4c44fb358e493756;hp=47d7b262f51a5a416c8ca1538adafa3be8c4e3e2;hpb=36fc60e07ee3445fd913191d319ca1edf8353f7a;p=portal%2Fnonrtric-controlpanel.git diff --git a/webapp-frontend/nginx.conf b/webapp-frontend/nginx.conf index 47d7b26..701d8fa 100644 --- a/webapp-frontend/nginx.conf +++ b/webapp-frontend/nginx.conf @@ -4,8 +4,7 @@ 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 nonrtricgateway:9090; } server { @@ -13,8 +12,11 @@ http { server_name localhost; root /usr/share/nginx/html; index index.html; - location /api/ { + location /a1-policy/v2/ { proxy_pass http://backend; } + location / { + try_files $uri $uri/ /index.html; + } } } \ No newline at end of file