61 lines
1.7 KiB
Plaintext
61 lines
1.7 KiB
Plaintext
#=======================================================================
|
|
# 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
|
|
|
|
# Log format
|
|
include __CONFDIR__/nginx-lmlog.conf;
|
|
#access_log /var/log/nginx/access.log lm_combined;
|
|
|
|
server {
|
|
listen __PORT__;
|
|
server_name reload.__DNSDOMAIN__;
|
|
root /var/www/html;
|
|
|
|
location = /reload {
|
|
allow 127.0.0.1;
|
|
deny all;
|
|
|
|
# FastCGI configuration
|
|
include /etc/nginx/fastcgi_params;
|
|
fastcgi_pass unix:__FASTCGISOCKDIR__/llng-fastcgi.sock;
|
|
fastcgi_param LLTYPE reload;
|
|
|
|
# OR TO USE uWSGI
|
|
#include /etc/nginx/uwsgi_params;
|
|
#uwsgi_pass 127.0.0.1:5000;
|
|
#uwsgi_param LLTYPE reload;
|
|
}
|
|
|
|
# Client requests
|
|
location / {
|
|
deny all;
|
|
|
|
# Uncomment this if you use https only
|
|
#add_header Strict-Transport-Security "15768000";
|
|
}
|
|
|
|
# Uncomment this if status is enabled
|
|
#location = /status {
|
|
# allow 127.0.0.1;
|
|
# deny all;
|
|
# # FastCGI configuration
|
|
# include /etc/nginx/fastcgi_params;
|
|
# fastcgi_pass unix:__FASTCGISOCKDIR__/llng-fastcgi.sock;
|
|
# fastcgi_param LLTYPE status;
|
|
# # OR TO USE uWSGI
|
|
# #include /etc/nginx/uwsgi_params;
|
|
# #uwsgi_pass 127.0.0.1:5000;
|
|
# #uwsgi_param LLTYPE status;
|
|
#}
|
|
}
|