From 098a2eb4e3d64bfc974322f364cbd44706ef8ee9 Mon Sep 17 00:00:00 2001 From: nd <nd@cccv.de> Date: Mon, 29 Aug 2022 21:57:40 +0000 Subject: [PATCH] Update nginx.conf for working post requests --- testapp/nginx.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/testapp/nginx.conf b/testapp/nginx.conf index 4232b4a..f12f0f4 100644 --- a/testapp/nginx.conf +++ b/testapp/nginx.conf @@ -1,4 +1,3 @@ - pid nginx.pid; error_log nginx.err.log; @@ -48,6 +47,9 @@ http { proxy_set_header X-CLIENT-ID "test"; proxy_set_header X-CLIENT-SECRET "testsecret"; proxy_pass http://localhost:5002/; + # those options are needed to have working POST requests + proxy_set_header Content-Length "" + proxy_pass_request_body off } error_page 401 = @error401; -- GitLab