From 267b96bd16795c8bde5d021c28f10a041ac00fd8 Mon Sep 17 00:00:00 2001 From: Arnaud Fornerot Date: Thu, 16 Jan 2020 09:13:16 +0100 Subject: [PATCH 1/2] optimisation --- dicos/70_lemonldap_ng.xml | 5 +++++ tmpl/lemonldap-ng-fastcgi-server | 15 +++++++++++++++ tmpl/portal-nginx.conf | 1 + 3 files changed, 21 insertions(+) create mode 100644 tmpl/lemonldap-ng-fastcgi-server diff --git a/dicos/70_lemonldap_ng.xml b/dicos/70_lemonldap_ng.xml index 797333b..07c85ce 100644 --- a/dicos/70_lemonldap_ng.xml +++ b/dicos/70_lemonldap_ng.xml @@ -8,6 +8,7 @@ + @@ -34,6 +35,10 @@ + + 4 + + admin diff --git a/tmpl/lemonldap-ng-fastcgi-server b/tmpl/lemonldap-ng-fastcgi-server new file mode 100644 index 0000000..2d589f9 --- /dev/null +++ b/tmpl/lemonldap-ng-fastcgi-server @@ -0,0 +1,15 @@ +# Number of process (default: 7) +NPROC = 4 + +# Unix socket to listen to +SOCKET=/run/llng-fastcgi-server/llng-fastcgi.sock + +# Pid file +PID=/run/llng-fastcgi-server/llng-fastcgi-server.pid + +# User and GROUP +USER=www-data +GROUP=www-data + +# Custom functions file +#CUSTOM_FUNCTIONS_FILE=/var/lib/lemonldap-ng/myfile.pm diff --git a/tmpl/portal-nginx.conf b/tmpl/portal-nginx.conf index 701f484..c754ac4 100644 --- a/tmpl/portal-nginx.conf +++ b/tmpl/portal-nginx.conf @@ -25,6 +25,7 @@ server { ssl_certificate_key %%server_key; %end if ssl_client_certificate /etc/ssl/certs/ca..crt; + ssl_session_cache shared:SSL:10m; access_log /var/log/nginx/auth-lemon-ldap.access-ssl.log; server_name %%authWebName; root /usr/share/lemonldap-ng/portal/htdocs/; From 7328d4b968524a64361e8c7bd2ef46d9f157458e Mon Sep 17 00:00:00 2001 From: Arnaud Fornerot Date: Thu, 16 Jan 2020 09:27:47 +0100 Subject: [PATCH 2/2] utilisation de la variable lemonproc dans la conf fastcgi --- tmpl/lemonldap-ng-fastcgi-server | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmpl/lemonldap-ng-fastcgi-server b/tmpl/lemonldap-ng-fastcgi-server index 2d589f9..9942b4c 100644 --- a/tmpl/lemonldap-ng-fastcgi-server +++ b/tmpl/lemonldap-ng-fastcgi-server @@ -1,5 +1,5 @@ # Number of process (default: 7) -NPROC = 4 +NPROC = %%lemonproc # Unix socket to listen to SOCKET=/run/llng-fastcgi-server/llng-fastcgi.sock