Update the Readme file
[nonrtric.git] / docker-compose / control-panel / config / nginx.conf
index bf12f87..10f4582 100644 (file)
@@ -2,21 +2,19 @@ events{}
 
 http {
     include /etc/nginx/mime.types;
-
-    upstream backend {
-        server  nonrtric-gateway:9090;
-    }
-
+    
     server {
         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;