Skip to content

Commit

Permalink
Merge pull request #28 from guardian/js-websocket-trailing-slash
Browse files Browse the repository at this point in the history
Do not add trailing slash to websocket path
  • Loading branch information
joelochlann authored Apr 3, 2023
2 parents a7ff8c1 + a26d49b commit 9ad4533
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 9ad4533

Please sign in to comment.