X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=docker-compose%2Fcontrol-panel%2Fconfig%2Fnginx.conf;h=2414bde0c62116df14e044b6bb586459e9ceaad3;hb=e5960c828297899da146313f695222ef190bacc1;hp=81102eb82ea026557504230a328d120a49c4edad;hpb=cdc8a586be446a08d1d43f1f8a56115d5f72d9c6;p=nonrtric.git diff --git a/docker-compose/control-panel/config/nginx.conf b/docker-compose/control-panel/config/nginx.conf index 81102eb8..2414bde0 100644 --- a/docker-compose/control-panel/config/nginx.conf +++ b/docker-compose/control-panel/config/nginx.conf @@ -2,18 +2,22 @@ events{} http { include /etc/nginx/mime.types; - - upstream backend { - server nonrtric-gateway:9090; - } - + resolver 127.0.0.11; server { listen 8080; server_name localhost; root /usr/share/nginx/html; index index.html; - location /api/ { - 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; } } } \ No newline at end of file