fixed sdnc-web proxy for topology api 65/111965/1
authorMichael Dürre <michael.duerre@highstreet-technologies.com>
Tue, 1 Sep 2020 11:22:20 +0000 (13:22 +0200)
committerMichael Dürre <michael.duerre@highstreet-technologies.com>
Tue, 1 Sep 2020 11:22:33 +0000 (13:22 +0200)
fixed proxy pass for topology api and synced https

Issue-ID: SDNC-1341
Signed-off-by: Michael Dürre <michael.duerre@highstreet-technologies.com>
Change-Id: Ie45f3fa91a082fd7739e5c040691df5602553c98

Former-commit-id: f2d7e05ffb34afcbbcccc376e6b823725982566a

installation/sdnc-web/src/main/resources/http_site.conf
installation/sdnc-web/src/main/resources/https_site.conf

index 70554ef..d62fc8e 100644 (file)
@@ -61,9 +61,7 @@ server {
         }
     }
     location ~ ^/topology  {
-        if ($request_uri ~* "/topology/(.*)") { 
-            proxy_pass TOPOURL/$1;
-        }
+        proxy_pass TOPOURL;
     }
     location ~ ^/tiles/  {
         resolver 1.1.1.1;
@@ -84,4 +82,3 @@ server {
         proxy_pass SDNRPROTOCOL://SDNRHOST:SDNRPORT;
     }
 }
-
index 335aef4..d2d6ecd 100644 (file)
@@ -75,13 +75,18 @@ server {
         try_files /help/$args.json $uri;
     }
     location ~ ^/transportpce  {
-        try_files $uri $uri/ @backend-transportpce;
+        if ($request_uri ~* "/transportpce/(.*)") { 
+            proxy_pass TRPCEURL/$1;
+        }
     }
     location ~ ^/topology  {
-        try_files $uri $uri/ @backend-topology;
+        proxy_pass TOPOURL;
     }
-    location ~ ^/tiles  {
-        try_files $uri $uri/ @backend-tiles;
+    location ~ ^/tiles/  {
+        resolver 1.1.1.1;
+        if ($request_uri ~* "/tiles/(.*)") { 
+            proxy_pass TILEURL/$1;
+        }
     }
     location /  {
         try_files $uri $uri/ @backend;
@@ -95,15 +100,4 @@ server {
     location @backend {
         proxy_pass SDNRPROTOCOL://SDNRHOST:SDNRPORT;
     }
-    location @backend-transportpce {
-        proxy_pass TRPCEURL;
-    }
-    location @backend-topology {
-        proxy_pass TOPOURL;
-    }
-    location @backend-tiles {
-        proxy_pass TILEURL;
-    }
-
 }
-