From e48b196f3869867a03c15878506e032ba39809cf Mon Sep 17 00:00:00 2001 From: Clement Michaud Date: Sat, 23 Sep 2017 18:02:21 +0200 Subject: [PATCH] Add Content-Length header to the forwarded request to Authelia It seems nginx is closing the connection for some backends if `proxy_set_header Content-Length "";` is not added to the verification endpoint. --- example/nginx/nginx.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/example/nginx/nginx.conf b/example/nginx/nginx.conf index 9d5f0ebee..e72e409b0 100644 --- a/example/nginx/nginx.conf +++ b/example/nginx/nginx.conf @@ -65,6 +65,7 @@ http { proxy_set_header X-Original-URI $request_uri; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $http_host; + proxy_set_header Content-Length ""; proxy_pass http://authelia/verify; }