This repository was archived by the owner on Jan 6, 2021. It is now read-only.
File tree 3 files changed +15
-8
lines changed 3 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,7 @@ app_setup_nginx_reverse_proxy_block: ""
125
125
126
126
# changelog
127
127
changelogs :
128
+ - { date: "05.03.20:", desc: "Use port and proto upstream variables for ldap and default sample confs." }
128
129
- { date: "24.02.20:", desc: "Remove world/group read permissions in dns-conf." }
129
130
- { date: "23.02.20:", desc: "Add aliyun dns validation plugin." }
130
131
- { date: "28.01.20:", desc: "Deprecate tls-sni validation method, remove from docs." }
Original file line number Diff line number Diff line change 1
- ## Version 2019/08/01 - Changelog: https://github.com/linuxserver/docker-letsencrypt/commits/master/root/defaults/default
1
+ ## Version 2020/03/05 - Changelog: https://github.com/linuxserver/docker-letsencrypt/commits/master/root/defaults/default
2
2
3
3
# redirect all traffic to https
4
4
server {
@@ -100,8 +100,10 @@ server {
100
100
#
101
101
# include /config/nginx/proxy.conf;
102
102
# resolver 127.0.0.11 valid=30s;
103
- # set $upstream_heimdall heimdall;
104
- # proxy_pass https://$upstream_heimdall:443;
103
+ # set $upstream_app heimdall;
104
+ # set $upstream_port 443;
105
+ # set $upstream_proto https;
106
+ # proxy_pass $upstream_proto://$upstream_app:$upstream_port;
105
107
# }
106
108
#}
107
109
Original file line number Diff line number Diff line change 1
- ## Version 2018/08/10 - Changelog: https://github.com/linuxserver/docker-letsencrypt/commits/master/root/defaults/ldap.conf
1
+ ## Version 2020/03/05 - 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_ldap ldap-auth;
9
- proxy_pass http://$upstream_ldap:9000;
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;
10
12
proxy_set_header X-Target $request_uri;
11
13
}
12
14
13
15
location = /auth {
14
16
resolver 127.0.0.11 valid=30s;
15
- set $upstream_ldap ldap-auth;
16
- proxy_pass http://$upstream_ldap:8888;
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
21
18
22
proxy_pass_request_body off;
19
23
proxy_set_header Content-Length "";
You can’t perform that action at this time.
0 commit comments