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;
|
2016-02-24 08:26:53 +01:00
|
|
|
#access_log /var/log/nginx/access.log lm_combined;
|
2016-02-24 07:54:18 +01:00
|
|
|
|
2016-01-28 07:45:03 +01:00
|
|
|
server {
|
|
|
|
listen __PORT__;
|
2020-04-16 15:07:44 +02:00
|
|
|
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;
|
|
|
|
|
2019-02-07 11:26:19 +01:00
|
|
|
# Uncomment this if you are running behind a reverse proxy and want
|
|
|
|
# LemonLDAP::NG to see the real IP address of the end user
|
|
|
|
# Adjust the settings to match the IP address of your reverse proxy
|
|
|
|
# and the header containing the original IP address
|
|
|
|
# As an alternative, you can use the PROXY protocol
|
|
|
|
#
|
|
|
|
#set_real_ip_from 127.0.0.1;
|
|
|
|
#real_ip_header X-Forwarded-For;
|
|
|
|
|
2016-02-02 07:17:08 +01:00
|
|
|
location = /reload {
|
2020-09-28 17:26:14 +02:00
|
|
|
allow 127.0.0.0/8;
|
2020-04-16 15:07:44 +02:00
|
|
|
allow ::1/128;
|
2016-02-02 07:17:08 +01:00
|
|
|
deny all;
|
2018-03-22 21:52:00 +01:00
|
|
|
|
|
|
|
# FastCGI configuration
|
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-07-16 08:05:36 +02:00
|
|
|
fastcgi_param LLTYPE reload;
|
2018-03-22 21:52:00 +01:00
|
|
|
|
2022-10-23 21:15:24 +02:00
|
|
|
# Or with uWSGI
|
2018-03-22 21:52:00 +01:00
|
|
|
#include /etc/nginx/uwsgi_params;
|
|
|
|
#uwsgi_pass 127.0.0.1:5000;
|
|
|
|
#uwsgi_param LLTYPE reload;
|
2016-01-28 07:45:03 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
# Client requests
|
|
|
|
location / {
|
2016-02-02 07:17:08 +01:00
|
|
|
deny all;
|
2016-01-28 07:45:03 +01:00
|
|
|
}
|
|
|
|
|
2016-02-02 07:17:08 +01:00
|
|
|
# Uncomment this if status is enabled
|
2016-02-25 09:58:47 +01:00
|
|
|
#location = /status {
|
2020-04-16 15:07:44 +02:00
|
|
|
# allow 127.0.0.1/8;
|
|
|
|
# allow ::1/128;
|
2016-02-02 07:17:08 +01:00
|
|
|
# deny all;
|
2018-03-22 21:52:00 +01:00
|
|
|
# # FastCGI configuration
|
2016-02-02 07:17:08 +01:00
|
|
|
# include /etc/nginx/fastcgi_params;
|
2016-02-15 22:12:56 +01:00
|
|
|
# fastcgi_pass unix:__FASTCGISOCKDIR__/llng-fastcgi.sock;
|
2016-02-11 10:36:12 +01:00
|
|
|
# fastcgi_param LLTYPE status;
|
2022-10-23 21:15:24 +02:00
|
|
|
# # Or with uWSGI
|
2018-03-22 21:52:00 +01:00
|
|
|
# #include /etc/nginx/uwsgi_params;
|
|
|
|
# #uwsgi_pass 127.0.0.1:5000;
|
|
|
|
# #uwsgi_param LLTYPE status;
|
2016-02-02 07:17:08 +01:00
|
|
|
#}
|
2016-01-28 07:45:03 +01:00
|
|
|
}
|