| 1 |
Platforms overview |
| 2 |
================== |
| 3 |
|
| 4 |
LLNG is able to use different web servers to provide its services. Here |
| 5 |
is a resume of all possibilities. We recommend: |
| 6 |
|
| 7 |
- For installations subject to small/medium load: Nginx with our |
| 8 |
default FastCGI server, or Apache *(with mpm_prefork engine)* |
| 9 |
- For heavily loaded installation: Nginx. The choice for |
| 10 |
FastCGI server engine depends on the behavior of your users |
| 11 |
|
| 12 |
Portal/Manager installation |
| 13 |
--------------------------- |
| 14 |
|
| 15 |
Since 2.0, both portal and manager are native FastCGI / PSGI Plack based |
| 16 |
applications. They can be powered by any FastCGI / PSGI compatible web |
| 17 |
servers. Some examples: |
| 18 |
|
| 19 |
=============================== ================================================================================================ ============================= ============================= ===================================================================================== |
| 20 |
\ Apache Nginx Plack servers family |
| 21 |
=============================== ================================================================================================ ============================= ============================= ===================================================================================== |
| 22 |
**Engines** `mod_fcgid <https://httpd.apache.org/mod_fcgid/>`__ or `mod_fastcgi <http://www.fastcgi.com/>`__ FastCGI/uWSGI server Any `Plack HTTP server <https://plackperl.org>`__ (*see* :doc:`our doc<configplack>` ) |
| 23 |
**Link with webserver process** External processes managed by webserver *(default)* External LLNG serve External LLNG server :doc:`Inside<configplack>` |
| 24 |
=============================== ================================================================================================ ============================= ============================= ===================================================================================== |
| 25 |
|
| 26 |
Application protection overview |
| 27 |
------------------------------- |
| 28 |
|
| 29 |
Applications can be protected: |
| 30 |
|
| 31 |
- by a LLNG handler |
| 32 |
- by themselves if they can dial with a supported protocol (SAML, |
| 33 |
OpenID-Connect,...) |
| 34 |
|
| 35 |
To protect applications with handler, LLNG can be used in two mode: |
| 36 |
|
| 37 |
- Direct Application Mode : LLNG handler is an embedded application. |
| 38 |
Handler must be installed on application Web Server |
| 39 |
- ReverseProxy Mode : applications are hidden behind a ReverseProxy |
| 40 |
which provides the required LLNG handler |
| 41 |
|
| 42 |
Handler integration |
| 43 |
~~~~~~~~~~~~~~~~~~~ |
| 44 |
|
| 45 |
Direct Application Mode |
| 46 |
^^^^^^^^^^^^^^^^^^^^^^^ |
| 47 |
|
| 48 |
LLNG handlers can be installed on the following web servers: |
| 49 |
|
| 50 |
================================= ========================== =============================================================================== ==================== ================================================================================= |
| 51 |
\ Apache Nginx Plack servers family Node.js |
| 52 |
================================= ========================== =============================================================================== ==================== ================================================================================= |
| 53 |
**Addon needed** ModPerl Express |
| 54 |
**LLNG integration in webserver** :doc:`Inside<configvhost>` Separate process: External LLNG FastCGI/uWSGI servers *(auth_request)* :doc:`Inside<psgi>` `Inside <https://github.com/LemonLDAPNG/node-lemonldap-ng-handler#express-app>`__ |
| 55 |
================================= ========================== =============================================================================== ==================== ================================================================================= |
| 56 |
|
| 57 |
ReverseProxy Mode |
| 58 |
^^^^^^^^^^^^^^^^^ |
| 59 |
|
| 60 |
============================================== ========================== ============================================================== |
| 61 |
\ Apache Nginx |
| 62 |
============================================== ========================== ============================================================== |
| 63 |
**LLNG integration in ReverseProxy webserver** :doc:`Inside<configvhost>` Separate process: External LLNG FastCGI/uWSGI servers |
| 64 |
============================================== ========================== ============================================================== |
| 65 |
|
| 66 |
.. _platformsoverview-external-servers-for-nginx: |
| 67 |
|
| 68 |
External servers for Nginx |
| 69 |
~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 70 |
|
| 71 |
Nginx supports natively FastCGI and uWSGI protocols. |
| 72 |
|
| 73 |
Therefore, LLNG services can be provided by compatible external servers. |
| 74 |
|
| 75 |
|
| 76 |
.. tip:: |
| 77 |
|
| 78 |
FastCGI or uWSGI server(s) can be installed on separate hosts. |
| 79 |
Also you can imagine a global cloud-FastCGI/uWSGI-service for all your |
| 80 |
Nginx servers. See more at |
| 81 |
:doc:`SSO as a service (SSOaaS)<ssoaas>`. |
| 82 |
|
| 83 |
FastCGI |
| 84 |
^^^^^^^ |
| 85 |
|
| 86 |
By default, LLNG provides a Plack based FastCGI server able to afford |
| 87 |
all LLNG services using |
| 88 |
`FCGI <https://metacpan.org/pod/Plack::Handler::FCGI>`__ engine. |
| 89 |
|
| 90 |
However, you can use some other FastCGI server engines: |
| 91 |
|
| 92 |
- `AnyEvent::FCGI <https://metacpan.org/pod/Plack::Handler::AnyEvent::FCGI>`__ |
| 93 |
- `FCGI::EV <https://metacpan.org/pod/Plack::Handler::FCGI::EV>`__ |
| 94 |
- `FCGI::Engine <https://metacpan.org/pod/Plack::Handler::FCGI::Engine>`__ |
| 95 |
- `FCGI::Engine::ProcManager <https://metacpan.org/pod/Plack::Handler::FCGI::Engine::ProcManager>`__ |
| 96 |
- `FCGI::Async <https://metacpan.org/pod/Plack::Handler::FCGI::Async>`__ |
| 97 |
- `LLNG FastCGI server for |
| 98 |
Node.js <https://github.com/LemonLDAPNG/node-lemonldap-ng-handler#nginx-authorization-server>`__\ (*) |
| 99 |
|
| 100 |
|
| 101 |
.. danger:: |
| 102 |
|
| 103 |
(*) LLNG Node.js handler can only be used as Nginx |
| 104 |
\`auth_request\` server, not to serve Portal or Manager |
| 105 |
|
| 106 |
uWSGI |
| 107 |
^^^^^ |
| 108 |
|
| 109 |
- uWSGI server (with uwsgi PSGI plugin, see |
| 110 |
:doc:`Advanced PSGI usage<psgi>`) |