mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-08-21 22:03:39 -07:00
add ldap support
This commit is contained in:
parent
e226c9223c
commit
0e46aae3d6
2 changed files with 7 additions and 1 deletions
|
@ -8,10 +8,13 @@ server {
|
|||
|
||||
client_max_body_size 0;
|
||||
|
||||
# enable for ldap auth, fill in ldap details in ldap.conf
|
||||
#include /config/nginx/ldap.conf;
|
||||
|
||||
location / {
|
||||
include /config/nginx/proxy.conf;
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
set $upstream_shaarli shaarli;
|
||||
proxy_pass http://$upstream_shaarli:80;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,6 +3,9 @@ location /shaarli {
|
|||
}
|
||||
|
||||
location ^~ /shaarli/ {
|
||||
# enable for ldap auth, fill in ldap details in ldap.conf
|
||||
#include /config/nginx/ldap.conf;
|
||||
|
||||
include /config/nginx/proxy.conf;
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
set $upstream_shaarli shaarli;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue