X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=docker-compose%2Fcontrol-panel%2Fconfig%2Fnginx.conf;h=916caef6a2729cfde27819b57e14f8e201a667c4;hb=6c9c6a3a5c103a3b979e903c374dd299ce978f3a;hp=374910f65d6e9a57be87f8951d0163cf4df1a266;hpb=718fc1767c5534e0606c7ffeb3bb23db6b8d9b0e;p=nonrtric.git diff --git a/docker-compose/control-panel/config/nginx.conf b/docker-compose/control-panel/config/nginx.conf index 374910f6..916caef6 100644 --- a/docker-compose/control-panel/config/nginx.conf +++ b/docker-compose/control-panel/config/nginx.conf @@ -2,18 +2,19 @@ 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 /a1-policy/v2/ { - proxy_pass http://backend; + location /a1-policy/ { + set $upstream nonrtric-gateway; + proxy_pass http://$upstream:9090; + } + location /data-producer/{ + set $upstream nonrtric-gateway; + proxy_pass http://$upstream:9090; } location / { try_files $uri $uri/ /index.html;