From 87820a9f0ce9d4b2639cb95401f27ec5143bba17 Mon Sep 17 00:00:00 2001 From: hzrd149 Date: Sat, 16 Dec 2023 08:45:41 -0600 Subject: [PATCH] fix nginx cache-relay proxy --- docker-entrypoint.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 4d7b1c893..d811ddc38 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -7,7 +7,10 @@ if [ -n "$CACHE_RELAY" ]; then sed -i 's/CACHE_RELAY_ENABLED = false/CACHE_RELAY_ENABLED = true/g' /usr/share/nginx/html/index.html CACHE_RELAY_PROXY=" location /cache-relay { - proxy_pass http://$CACHE_RELAY/; + proxy_pass http://$CACHE_RELAY/; + proxy_http_version 1.1; + proxy_set_header Upgrade \$http_upgrade; + proxy_set_header Connection "upgrade"; } " else