update sdnc-web image
[sdnc/oam.git] / installation / sdnc-web / src / main / resources / http_site.conf
index 640668a..70554ef 100644 (file)
 # Default server configuration
 #
 server {
-       listen WEBPORT default_server ;
-       listen [::]:WEBPORT default_server;
+    listen WEBPORT default_server ;
+    listen [::]:WEBPORT default_server;
 
-#      root /var/www;
+#   root /var/www;
 
-       index index.html index.htm index.nginx-debian.html;
+    index index.html index.htm index.nginx-debian.html;
 
-       server_name _;
-
-       location ~ ^/$  {
-               return 301 /odlux/index.html;
-       }
-       location ~ /help/$  {
-               try_files /help/$args.json $uri;
-       }
-       location /  {
-               try_files $uri $uri/ @backend;
-       }
-       location /websocket {
-               proxy_pass SDNRPROTOCOL://SDNRHOST:SDNRPORT/websocket;
-               proxy_http_version 1.1;
-               proxy_set_header Upgrade $http_upgrade;
-               proxy_set_header Connection "upgrade";
-       }
-       location @backend {
-               proxy_pass SDNRPROTOCOL://SDNRHOST:SDNRPORT;
-       }
+    server_name _;
 
+    location ~ ^/$  {
+        return 301 /odlux/index.html;
+    }
+    location ~ ^/help/$  {
+        try_files /help/$args.json $uri;
+    }
+    location ~ ^/transportpce  {
+        if ($request_uri ~* "/transportpce/(.*)") { 
+            proxy_pass TRPCEURL/$1;
+        }
+    }
+    location ~ ^/topology  {
+        if ($request_uri ~* "/topology/(.*)") { 
+            proxy_pass TOPOURL/$1;
+        }
+    }
+    location ~ ^/tiles/  {
+        resolver 1.1.1.1;
+        if ($request_uri ~* "/tiles/(.*)") { 
+            proxy_pass TILEURL/$1;
+        }
+    }
+    location /  {
+        try_files $uri $uri/ @backend;
+    }
+    location ^/websocket$ {
+        proxy_pass SDNRPROTOCOL://SDNRHOST:SDNRPORT/websocket;
+        proxy_http_version 1.1;
+        proxy_set_header Upgrade $http_upgrade;
+            proxy_set_header Connection "upgrade";
+    }
+    location @backend {
+        proxy_pass SDNRPROTOCOL://SDNRHOST:SDNRPORT;
+    }
 }