From: Michael Dürre Date: Wed, 26 Feb 2025 11:41:34 +0000 (+0100) Subject: fixed sdnc-web dist X-Git-Tag: 3.1.0~2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=210dab225f084e1f963bc93b726282fe7090d253;p=sdnc%2Foam.git fixed sdnc-web dist adapt nginx rules to latest env vars Issue-ID: CCSDK-4087 Change-Id: I59483bbee48e986b15986fc14629565bcfa3da33 Signed-off-by: Michael Dürre --- diff --git a/installation/sdnc-web/src/main/resources/location.rules b/installation/sdnc-web/src/main/resources/location.rules index 8f1f527f..4eecadf8 100644 --- a/installation/sdnc-web/src/main/resources/location.rules +++ b/installation/sdnc-web/src/main/resources/location.rules @@ -10,12 +10,36 @@ location ~ ^/transportpce { proxy_pass TRPCEURL/$1; } } +location ~ ^/topology/ { + resolver DNS_INTERNAL_RESOLVER; + proxy_pass TOPOURL; +} +location ~ ^/sitedoc/ { + resolver DNS_INTERNAL_RESOLVER; + if ($request_uri ~* "/sitedoc/(.*)") { + proxy_pass SITEDOCURL/topology/stadok/$1; + } +} location ~ ^/tiles/ { resolver DNS_RESOLVER; if ($request_uri ~* "/tiles/(.*)") { proxy_pass TILEURL/$1; } } +location ~ ^/terrain/ { + resolver DNS_INTERNAL_RESOLVER; + if ($request_uri ~* "/terrain/(.*)") { + proxy_pass TERRAINURL/$1; + } +} +location ~ ^/electromagnetic-field/ { + resolver DNS_RESOLVER; + proxy_set_header Authorization "Basic ELECTROMAGNETICFIELDBAUTHTOKEN"; + proxy_pass_header Authorization; + if ($request_uri ~* "/electromagnetic-field/(.*)") { + proxy_pass ELECTROMAGNETICFIELDURL/$1; + } +} location / { try_files $uri $uri/ @backend; } diff --git a/installation/sdnc-web/src/main/scripts/core.py b/installation/sdnc-web/src/main/scripts/core.py index 2852379d..43b58c0e 100644 --- a/installation/sdnc-web/src/main/scripts/core.py +++ b/installation/sdnc-web/src/main/scripts/core.py @@ -237,7 +237,6 @@ def update_index_html(apps=None): ODLUX_CONFIG['transportpceUrl']=TRPCEGUIURL print("trpce gui url is: {}".format(TRPCEGUIURL)) -# sed -z 's/