X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=docker-compose%2Fcontrol-panel%2Fconfig%2Fnginx.conf;h=3416fd4ebae7d6db4afceacb3e4f098c05d12249;hb=f429bad2b6cd1ee0f27e211f177c669c63e7a411;hp=374910f65d6e9a57be87f8951d0163cf4df1a266;hpb=99bcb01d872b2166ef3b2cb5cf04d346043b5a31;p=nonrtric.git diff --git a/docker-compose/control-panel/config/nginx.conf b/docker-compose/control-panel/config/nginx.conf index 374910f6..3416fd4e 100644 --- a/docker-compose/control-panel/config/nginx.conf +++ b/docker-compose/control-panel/config/nginx.conf @@ -2,21 +2,26 @@ 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 /data-consumer/{ + set $upstream nonrtric-gateway; + proxy_pass http://$upstream:9090; } location / { try_files $uri $uri/ /index.html; } } -} \ No newline at end of file +}