|
1 | | -## Version 2020/03/05 - Changelog: https://github.com/linuxserver/docker-letsencrypt/commits/master/root/defaults/ldap.conf |
| 1 | +## Version 2020/03/13 - Changelog: https://github.com/linuxserver/docker-letsencrypt/commits/master/root/defaults/ldap.conf |
2 | 2 | ## this conf is meant to be used in conjuntction with our ldap-auth image: https://github.com/linuxserver/docker-ldap-auth |
3 | 3 | ## see the heimdall example in the default site config for info on enabling ldap auth |
4 | 4 | ## for further instructions on this conf, see https://github.com/nginxinc/nginx-ldap-auth |
5 | 5 |
|
6 | 6 | location /login { |
7 | 7 | resolver 127.0.0.11 valid=30s; |
8 | | - set $upstream_app ldap-auth; |
9 | | - set $upstream_port 9000; |
10 | | - set $upstream_proto http; |
11 | | - proxy_pass $upstream_proto://$upstream_app:$upstream_port; |
| 8 | + set $upstream_auth_app ldap-auth; |
| 9 | + set $upstream_auth_port 9000; |
| 10 | + set $upstream_auth_proto http; |
| 11 | + proxy_pass $upstream_auth_proto://$upstream_auth_app:$upstream_auth_port; |
12 | 12 | proxy_set_header X-Target $request_uri; |
13 | 13 | } |
14 | 14 |
|
15 | 15 | location = /auth { |
16 | 16 | resolver 127.0.0.11 valid=30s; |
17 | | - set $upstream_app ldap-auth; |
18 | | - set $upstream_port 8888; |
19 | | - set $upstream_proto http; |
20 | | - proxy_pass $upstream_proto://$upstream_app:$upstream_port; |
| 17 | + set $upstream_auth_app ldap-auth; |
| 18 | + set $upstream_auth_port 8888; |
| 19 | + set $upstream_auth_proto http; |
| 20 | + proxy_pass $upstream_auth_proto://$upstream_auth_app:$upstream_auth_port; |
21 | 21 |
|
22 | 22 | proxy_pass_request_body off; |
23 | 23 | proxy_set_header Content-Length ""; |
|
0 commit comments