fixed forwarding rule for websocket
Issue-ID: SDNC-1395
Signed-off-by: Michael Dürre <michael.duerre@highstreet-technologies.com>
Change-Id: Ida2e28662afdfee86269c51c0902df13a55d53ca
Former-commit-id:
7221d61998a0012e473a28ef8529c67e3ed5ecdd
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;
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;