X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=webapp-frontend%2Fnginx.conf;h=10f458247aba09c5e35be5289fbb0d19c22aa11a;hb=64b35796309259667d0dac6f9cdc2ad00bca53ee;hp=164875c1aae26577b61e3f1fbe23783245501d62;hpb=a3e0f85eff3e8203612c547045e11f8d83639df1;p=portal%2Fnonrtric-controlpanel.git diff --git a/webapp-frontend/nginx.conf b/webapp-frontend/nginx.conf index 164875c..10f4582 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 nonrtricgateway:9090; - } - + 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 http://nonrtric-gateway:9090; + proxy_pass $upstream; } - location /ei-producer/ { - proxy_pass http://backend; + location /ei-producer/{ + set $upstream http://nonrtric-gateway:9090; + proxy_pass $upstream; } location / { - try_files $uri $uri/ /index.html; + try_files $uri $uri/ /index.html; } } } \ No newline at end of file