Skip to content

Commit

Permalink
Do not add trailing slash to websocket path
Browse files Browse the repository at this point in the history
  • Loading branch information
joelochlann authored Mar 17, 2023
1 parent a7ff8c1 commit a26d49b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/setup-app
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ EOS
if websocket
file.write <<-EOS
location #{websocket}/ {
proxy_pass http://localhost:#{mapping['port']}#{websocket}/;
location #{websocket} {
proxy_pass http://localhost:#{mapping['port']}#{websocket};
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
Expand Down

0 comments on commit a26d49b

Please sign in to comment.