Skip to content
This repository has been archived by the owner on Jan 6, 2021. It is now read-only.

Commit

Permalink
prevent nginx from erroring out if ldap is down
Browse files Browse the repository at this point in the history
  • Loading branch information
aptalca committed Aug 15, 2018
1 parent dc4a408 commit ea5d1fa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions root/defaults/ldap.conf
Expand Up @@ -4,12 +4,16 @@
## for further instructions on this conf, see https://github.com/nginxinc/nginx-ldap-auth

location /login {
proxy_pass http://ldap-auth:9000/login;
resolver 127.0.0.11 valid=30s;
set $upstream_ldap ldap-auth;
proxy_pass http://$upstream_ldap:9000;
proxy_set_header X-Target $request_uri;
}

location = /auth {
proxy_pass http://ldap-auth:8888;
resolver 127.0.0.11 valid=30s;
set $upstream_ldap ldap-auth;
proxy_pass http://$upstream_ldap:8888;

proxy_pass_request_body off;
proxy_set_header Content-Length "";
Expand Down

0 comments on commit ea5d1fa

Please sign in to comment.