From cba8e7f924e0fbadd547867000fd610b85bd067c Mon Sep 17 00:00:00 2001 From: Maaike Date: Thu, 2 May 2024 03:06:26 +0200 Subject: [PATCH] add x_api_http_method to /auth (#673) --- nginx/nginx-ssl.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nginx/nginx-ssl.conf b/nginx/nginx-ssl.conf index 6b261f851..1500aca1e 100644 --- a/nginx/nginx-ssl.conf +++ b/nginx/nginx-ssl.conf @@ -70,17 +70,17 @@ auth_basic_user_file /etc/nginx/.htpasswd/webapp; proxy_pass http://wis2box-webapp:4173/wis2box-webapp/; } - location / { - proxy_pass http://wis2box-ui:80; - } location /auth { internal; proxy_pass http://wis2box-auth:80/authorize; - proxy_pass_request_body off; proxy_set_header Content-Length ""; + proxy_set_header X-api-http-method $x_api_http_method; proxy_set_header X-Original-URI $request_uri; proxy_set_header Authorization $http_authorization; proxy_pass_header Authorization; } + location / { + proxy_pass http://wis2box-ui:80; + } }