Typo and update PSGI doc

Moo
Christophe Maudoux 5 years ago
parent 25598c0238
commit 954643994f
  1. 24
      doc/sources/admin/psgi.rst
  2. 2
      lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Conf.pm

@ -128,7 +128,7 @@ Then adapt your Nginx configuration to use this uWSGI app.
Configuration
^^^^^^^^^^^^^
To serve large requests with uWsgi, you could have to modify in uWsgi
To serve large requests with uWSGI, you could have to modify in uWSGI
and/or Nginx init files several options. Example:
.. code-block:: ini
@ -146,6 +146,28 @@ and/or Nginx init files several options. Example:
uwsgi_read_timeout 120;
uwsgi_send_timeout 120;
.. note::
Nginx natively includes support for upstream servers speaking the uwsgi protocol since version 0.8.40.
To improve performances, you can switch from a TCP socket to an Unix Domain Socket by editing
``llng-server.yaml`` and adapting Nignx configuration files:
.. code-block:: ini
uwsgi:
plugins: psgi
socket: /tmp/uwsgi.sock
.. code-block:: nginx
# OR TO USE uWSGI
include /etc/nginx/uwsgi_params;
uwsgi_pass unix:///tmp/uwsgi.sock;
uwsgi_param LLTYPE psgi;
uwsgi_param SCRIPT_FILENAME $document_root$sc;
uwsgi_param SCRIPT_NAME $sc;
# Uncomment this if you use Auth SSL:
#uwsgi_param SSL_CLIENT_S_DN_CN $ssl_client_s_dn_cn;
Protect a PSGI application
--------------------------

@ -328,7 +328,7 @@ sub newRawConf {
}
## @method private applyConf()
# Try to prevent other servers declared in `reloadUrls` that a new
# Try to inform other servers declared in `reloadUrls` that a new
# configuration is available.
#
#@return reload status as boolean

Loading…
Cancel
Save