From 0b207966f8009cd3016ab19ebe708a5155d9930c Mon Sep 17 00:00:00 2001 From: Maxime Besson Date: Mon, 17 Aug 2020 18:43:14 +0200 Subject: [PATCH] Fix doc formatting --- doc/sources/admin/psgi.rst | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/doc/sources/admin/psgi.rst b/doc/sources/admin/psgi.rst index 328bec268..4a31e242d 100644 --- a/doc/sources/admin/psgi.rst +++ b/doc/sources/admin/psgi.rst @@ -149,23 +149,26 @@ and/or Nginx init files several options. Example: .. 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 + ``llng-server.yaml``: - uwsgi: - plugins: psgi - socket: /tmp/uwsgi.sock + .. code-block:: ini - .. code-block:: nginx + uwsgi: + plugins: psgi + socket: /tmp/uwsgi.sock - # 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; + and adapting Nignx configuration files: + + .. 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