From a9088e311b6f52de2085d76d1da473a20ee1b7eb Mon Sep 17 00:00:00 2001 From: D3473R Date: Fri, 4 Sep 2020 18:03:57 +0200 Subject: [PATCH] Fix 400 error See https://github.com/dotnet/aspnetcore/issues/17081 --- nginx.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx.sh b/nginx.sh index fbce693..87011ab 100755 --- a/nginx.sh +++ b/nginx.sh @@ -468,7 +468,7 @@ proxy() { local service="$1" location="$2" header="${3:-""}" \ \ '"$([[ $sockets != "no" ]] && echo ' ## Required for websockets\ proxy_http_version 1.1;\ - proxy_set_header Connection "upgrade";\ + proxy_set_header Connection $http_connection;\ proxy_set_header Upgrade $http_upgrade;\ proxy_read_timeout 3600s;\ proxy_send_timeout 3600s;')"'\ @@ -724,4 +724,4 @@ elif ps -ef | egrep -v 'grep|nginx.sh' | grep -q nginx; then echo "Service already running, please restart container to apply changes" else exec nginx -g "daemon off;" -fi \ No newline at end of file +fi