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

Commit da7f71a

Browse files
authored
Merge pull request #421 from nemchik/auth-vars
Fix upstream auth vars
2 parents 269a261 + 432f2e7 commit da7f71a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

root/defaults/ldap.conf

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
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
22
## this conf is meant to be used in conjuntction with our ldap-auth image: https://github.com/linuxserver/docker-ldap-auth
33
## see the heimdall example in the default site config for info on enabling ldap auth
44
## for further instructions on this conf, see https://github.com/nginxinc/nginx-ldap-auth
55

66
location /login {
77
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;
1212
proxy_set_header X-Target $request_uri;
1313
}
1414

1515
location = /auth {
1616
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;
2121

2222
proxy_pass_request_body off;
2323
proxy_set_header Content-Length "";

0 commit comments

Comments
 (0)