Skip to content
This repository has been archived by the owner on Feb 10, 2025. It is now read-only.

Commit

Permalink
Merge pull request #47 from wandelbotsgmbh/feature/use-wss-if-running…
Browse files Browse the repository at this point in the history
…-on-wandelbots.io

fix: enhance WebSocket protocol handling for secure domains
  • Loading branch information
stefanwagnerdev authored Jan 30, 2025
2 parents 4686a01 + c1f3a0c commit 8b3f2f8
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 @@ -8,6 +8,9 @@ server {

location = $BASE_PATH {
set $ws_protocol "ws";
if ($http_host ~ "wandelbots.io") {
set $ws_protocol "wss";
}
if ($scheme = "https") {
set $ws_protocol "wss";
}
Expand Down

0 comments on commit 8b3f2f8

Please sign in to comment.