From 7885e91e5f6c80ebc50da3b483d5b7409085a552 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Wed, 19 May 2021 09:14:31 +0300
Subject: [PATCH] Set the proxying header for the LDAP auth service.

So I can get the real client IP in the service.
---
 snippets/ldap-auth.conf | 1 +
 1 file changed, 1 insertion(+)

diff --git a/snippets/ldap-auth.conf b/snippets/ldap-auth.conf
index 822c440..7a8236e 100644
--- a/snippets/ldap-auth.conf
+++ b/snippets/ldap-auth.conf
@@ -4,6 +4,7 @@ location = /validate {
   proxy_pass                        https://auth.shore.co.il/validate;
   proxy_http_version                1.1;
   include                           snippets/proxy-ssl.conf;
+  include                           snippets/proxy-headers.conf;
   internal;
   proxy_pass_request_body           off;
   proxy_set_header Content-Length   "";
-- 
GitLab