From a26d49b9e0f1159a403a91e2e9c8bca903d9ee17 Mon Sep 17 00:00:00 2001 From: Joseph Smith Date: Fri, 17 Mar 2023 18:03:20 +0000 Subject: [PATCH] Do not add trailing slash to websocket path --- script/setup-app | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/setup-app b/script/setup-app index bc38dfe..d172601 100755 --- a/script/setup-app +++ b/script/setup-app @@ -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";