From: Michael Dürre Date: Fri, 23 Oct 2020 07:30:32 +0000 (+0200) Subject: fixed websocket forwarding X-Git-Tag: 2.1.0~19 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=sdnc%2Foam.git;a=commitdiff_plain;h=7a6c197bd0a2543ce21ab851767006963e835cd3 fixed websocket forwarding fixed forwarding rule for websocket Issue-ID: SDNC-1395 Signed-off-by: Michael Dürre Change-Id: Ida2e28662afdfee86269c51c0902df13a55d53ca Former-commit-id: bcb12ca4fd5c6df770f96a0ac76170b6a4f2281f --- diff --git a/installation/sdnc-web/src/main/resources/http_site.conf b/installation/sdnc-web/src/main/resources/http_site.conf index 53356b43..ea6c33be 100644 --- a/installation/sdnc-web/src/main/resources/http_site.conf +++ b/installation/sdnc-web/src/main/resources/http_site.conf @@ -72,11 +72,11 @@ server { location / { try_files $uri $uri/ @backend; } - location ^/websocket$ { + location /websocket { proxy_pass SDNRPROTOCOL://SDNRHOST:SDNRPORT/websocket; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; + proxy_set_header Connection "upgrade"; } location @backend { proxy_pass SDNRPROTOCOL://SDNRHOST:SDNRPORT; diff --git a/installation/sdnc-web/src/main/resources/https_site.conf b/installation/sdnc-web/src/main/resources/https_site.conf index da86272d..5e61fece 100644 --- a/installation/sdnc-web/src/main/resources/https_site.conf +++ b/installation/sdnc-web/src/main/resources/https_site.conf @@ -91,11 +91,11 @@ server { location / { try_files $uri $uri/ @backend; } - location ^/websocket$ { + location /websocket { proxy_pass SDNRPROTOCOL://SDNRHOST:SDNRPORT/websocket; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; + proxy_set_header Connection "upgrade"; } location @backend { proxy_pass SDNRPROTOCOL://SDNRHOST:SDNRPORT;