lemonldap-ng/_example/etc/handler-nginx.conf

48 lines
1.3 KiB
Plaintext
Raw Normal View History

2016-02-11 10:50:27 +01:00
#=======================================================================
# Nginx configuration for LemonLDAP::NG Handler
#=======================================================================
# This file implements the reload virtualhost that permits to reload
# configuration without restarting server.
# You need then to declare this vhost in reloadUrls (in the manager
# interface if this server doesn't host the manager itself):
#
# KEY : VALUE
# host-or-IP:port : http://reload.example.com/reload
#
# IMPORTANT:
# To protect applications, see test-nginx.conf template in example files
2016-02-24 07:54:18 +01:00
# Log format
include __CONFDIR__/nginx-lmlog.conf;
access_log conf/nginx.log lm_combined;
2016-01-28 07:45:03 +01:00
server {
listen __PORT__;
2016-02-02 07:17:08 +01:00
server_name reload.__DNSDOMAIN__;
2016-01-28 07:45:03 +01:00
root /var/www/html;
2016-02-02 07:17:08 +01:00
location = /reload {
allow 127.0.0.1;
deny all;
2016-01-28 07:45:03 +01:00
include /etc/nginx/fastcgi_params;
2016-02-15 22:12:56 +01:00
fastcgi_pass unix:__FASTCGISOCKDIR__/llng-fastcgi.sock;
2016-01-28 07:45:03 +01:00
}
# Client requests
location / {
2016-02-02 07:17:08 +01:00
deny all;
# Uncomment this if you use https only
#add_header Strict-Transport-Security "15768000";
2016-01-28 07:45:03 +01:00
}
2016-02-02 07:17:08 +01:00
# Uncomment this if status is enabled
#location = /lmstatus {
# allow 127.0.0.1;
# deny all;
# include /etc/nginx/fastcgi_params;
2016-02-15 22:12:56 +01:00
# fastcgi_pass unix:__FASTCGISOCKDIR__/llng-fastcgi.sock;
# fastcgi_param LLTYPE status;
2016-02-02 07:17:08 +01:00
#}
2016-01-28 07:45:03 +01:00
}