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=cabba8d04f63989224b60cf80538d30717129b20;hp=bf12f872d79c4c4a9b2eb9ef18bf68c8a42891e4;hpb=273116634a3955a631dddb4454ecaf312a46c804;p=nonrtric.git diff --git a/docker-compose/control-panel/config/nginx.conf b/docker-compose/control-panel/config/nginx.conf index bf12f872..3416fd4e 100644 --- a/docker-compose/control-panel/config/nginx.conf +++ b/docker-compose/control-panel/config/nginx.conf @@ -2,24 +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/ { - proxy_pass http://backend; + set $upstream nonrtric-gateway; + proxy_pass http://$upstream:9090; + } + location /data-producer/{ + set $upstream nonrtric-gateway; + proxy_pass http://$upstream:9090; } - location /ei-producer/ { - proxy_pass http://backend; + 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 +}