Skip to content

Commit

Permalink
Merge pull request #58 from wandelbotsgmbh/bugfix/check-https
Browse files Browse the repository at this point in the history
fix: ensure websocket protocol is set to wss for HTTPS requests
  • Loading branch information
stefanwagnerdev authored Jan 30, 2025
2 parents 28fb8be + 7397261 commit 7e1f788
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nginx.http.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ server {
if ($http_host ~ "\.wandelbots\.io$") {
set $ws_protocol "wss";
}
if ($scheme = "https") {
set $ws_protocol "wss";
}
return 301 $scheme://$http_host$BASE_PATH/?url=$ws_protocol://$http_host$BASE_PATH/ws/;
}

Expand Down

0 comments on commit 7e1f788

Please sign in to comment.