diff options
author | 2023-04-20 08:50:54 +0200 | |
---|---|---|
committer | 2023-04-20 08:50:54 +0200 | |
commit | 35bc08cfc2792d1fa1ce5d4cf8cf940251163711 (patch) | |
tree | 566f2618ec427da608935785412608925ad29e0a /installation/sdnc-web/src/main/resources | |
parent | a4a4c3111e505ea6026542737125497a69521fa8 (diff) |
fix sdnr ws port configs
fix websocket ports for sdnc and sdnc-web
Issue-ID: SDNC-1795
Signed-off-by: Michael Dürre <michael.duerre@highstreet-technologies.com>
Change-Id: I97c617ede967eb716c2dc8d0707e3de0c8c1ac0c
Former-commit-id: f6d5ac391a828fa2d9f011c602bdeae2e515d9be
Diffstat (limited to 'installation/sdnc-web/src/main/resources')
3 files changed, 26 insertions, 17 deletions
diff --git a/installation/sdnc-web/src/main/resources/http_site.conf b/installation/sdnc-web/src/main/resources/http_site.conf index 3d9ade13..1fe43039 100644 --- a/installation/sdnc-web/src/main/resources/http_site.conf +++ b/installation/sdnc-web/src/main/resources/http_site.conf @@ -50,4 +50,17 @@ server { server_name _; include server_blocks/location.rules; + + gzip on; + gzip_min_length 1000; + gzip_comp_level 5; + gzip_proxied any; + gzip_vary on; + gzip_types text/plain + application/json + application/xml + application/yang-data+json + application/yang-data+xml + text/javascript + application/javascript; } diff --git a/installation/sdnc-web/src/main/resources/https_site.conf b/installation/sdnc-web/src/main/resources/https_site.conf index 6dcfb790..734a48bc 100644 --- a/installation/sdnc-web/src/main/resources/https_site.conf +++ b/installation/sdnc-web/src/main/resources/https_site.conf @@ -70,4 +70,16 @@ server { include server_blocks/location.rules; + gzip on; + gzip_min_length 1000; + gzip_comp_level 5; + gzip_proxied any; + gzip_vary on; + gzip_types text/plain + application/json + application/xml + application/yang-data+json + application/yang-data+xml + text/javascript + application/javascript; } diff --git a/installation/sdnc-web/src/main/resources/location.rules b/installation/sdnc-web/src/main/resources/location.rules index 83120d60..8f1f527f 100644 --- a/installation/sdnc-web/src/main/resources/location.rules +++ b/installation/sdnc-web/src/main/resources/location.rules @@ -10,33 +10,17 @@ 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 / { try_files $uri $uri/ @backend; } location /websocket { - proxy_pass SDNRPROTOCOL://SDNRHOST:SDNRPORT/websocket; + proxy_pass http://SDNRHOST:SDNRWEBSOCKETPORT/websocket; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; |