lemonldap-ng/doc/sources/admin/fastcgiserver.rst

51 lines
1.6 KiB
ReStructuredText
Raw Normal View History

2020-05-14 23:29:41 +02:00
LemonLDAP::NG FastCGI server
============================
2022-04-03 21:01:04 +02:00
Since 1.9, LL::NG provides a FastCGI server that can be used for protecting
2020-05-18 09:56:39 +02:00
applications with Nginx (See
2022-04-03 21:01:04 +02:00
:doc:`Manage virtual hosts<configvhost>` page to configure virtual hosts)
or the DevOps Handler (See :doc:`SSO as a Service<ssoaas>`).
2020-05-14 23:29:41 +02:00
2022-04-03 21:01:04 +02:00
This FastCGI server can be implemented for all LL::NG components.
It compiles enabled components just-in-time.
2020-05-14 23:29:41 +02:00
Start
-----
2022-04-03 21:01:04 +02:00
Using package
~~~~~~~~~~~~~
2020-05-14 23:29:41 +02:00
You just have to install lemonldap-ng-fastcgi-server package, it will be
started automatically.
Using "make install"
~~~~~~~~~~~~~~~~~~~~
To enable the FastCGI server at startup, copy the script
``llng-fastcgi-server`` installed in INITDIR (default
``/usr/local/lemonldap-ng/etc/init.d/``) in ``/etc/init.d`` and enable
2020-05-20 15:44:46 +02:00
it (links to ``/etc/rc<x>.d``).
2020-05-14 23:29:41 +02:00
Configuration
-------------
FastCGI server has few parameters. They can be set by environment
variables (read by startup script) or by command line options. A default
configuration file can be found in
2022-01-10 10:19:09 +01:00
``/usr/local/lemonldap-ng/etc/default/llng-fastcgi-server`` (or
2020-05-14 23:29:41 +02:00
``/etc/default/lemonldap-ng-fastcgi-server`` in Debian package).
The FastCGI server reads also ``LLTYPE`` parameter in FastCGI requests
(see portal-nginx.conf or manager-nginx.conf) to choose which module is
called:
- ``cgi`` to run .cgi scripts in FastCGI compatibility mode
- ``psgi`` ro run .psgi scripts under FastCGI
2020-05-14 23:29:41 +02:00
- ``manager`` for the manager
- ``handler`` for the handler
- ``portal`` for the portal
2020-05-14 23:29:41 +02:00
- ``status`` to see statistics (if enabled)
if ``LLTYPE`` is set to another value or not set, FastCGI server works
as handler.