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
}
}
location ~ ^/topology {
}
}
location ~ ^/topology {
- if ($request_uri ~* "/topology/(.*)") {
- proxy_pass TOPOURL/$1;
- }
}
location ~ ^/tiles/ {
resolver 1.1.1.1;
}
location ~ ^/tiles/ {
resolver 1.1.1.1;
proxy_pass SDNRPROTOCOL://SDNRHOST:SDNRPORT;
}
}
proxy_pass SDNRPROTOCOL://SDNRHOST:SDNRPORT;
}
}
try_files /help/$args.json $uri;
}
location ~ ^/transportpce {
try_files /help/$args.json $uri;
}
location ~ ^/transportpce {
- try_files $uri $uri/ @backend-transportpce;
+ if ($request_uri ~* "/transportpce/(.*)") {
+ proxy_pass TRPCEURL/$1;
+ }
}
location ~ ^/topology {
}
location ~ ^/topology {
- try_files $uri $uri/ @backend-topology;
- 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;
}
location / {
try_files $uri $uri/ @backend;
location @backend {
proxy_pass SDNRPROTOCOL://SDNRHOST:SDNRPORT;
}
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;
- }
-