Update nginx-ldap-auth.conf
Refine comments about setting IP addresses for the back-end and ldap-auth daemons.
This commit is contained in:
parent
dab97f77e9
commit
4129f7b7c7
|
|
@ -5,6 +5,10 @@ events { }
|
||||||
http {
|
http {
|
||||||
proxy_cache_path cache/ keys_zone=auth_cache:10m;
|
proxy_cache_path cache/ keys_zone=auth_cache:10m;
|
||||||
|
|
||||||
|
# The back-end daemon listens on port 9000 as configured
|
||||||
|
# in backend-sample-app.py.
|
||||||
|
# Change the IP address if the daemon is not running on the
|
||||||
|
# same host as NGINX/NGINX Plus.
|
||||||
upstream backend {
|
upstream backend {
|
||||||
server 127.0.0.1:9000;
|
server 127.0.0.1:9000;
|
||||||
}
|
}
|
||||||
|
|
@ -34,10 +38,10 @@ http {
|
||||||
location = /auth-proxy {
|
location = /auth-proxy {
|
||||||
internal;
|
internal;
|
||||||
|
|
||||||
# (Required) Set the IP address where the authentication daemon
|
# The ldap-auth daemon listens on port 8888, as configured
|
||||||
# is running, by replacing '127.0.0.1'.
|
# in the nginx-ldap-auth.py.
|
||||||
# The ldap-auth daemon listens on port 8888 as configured
|
# Change the IP address if the daemon is not running on
|
||||||
# in the Python script.
|
# the same host as NGINX/NGINX Plus.
|
||||||
proxy_pass http://127.0.0.1:8888;
|
proxy_pass http://127.0.0.1:8888;
|
||||||
|
|
||||||
proxy_pass_request_body off;
|
proxy_pass_request_body off;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue